• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

creating inline elements in a widget area

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › creating inline elements in a widget area

This topic is: resolved

Tagged: css, parallax-pro, unordered lists

  • This topic has 11 replies, 2 voices, and was last updated 10 years, 6 months ago by Christoph.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • July 1, 2015 at 8:56 pm #158104
    codebot5000
    Member

    Hi, I created an unordered list in the widget area of the Parallax Pro theme. I want to put it inline but keep the P elements directly beneath the li elements. Here is my code:

  • <i class="fa fa-line-chart fa-4x fa-spin-hover"></i>
  • <p>SEO Friendly</p>

  • <i class="fa fa-mobile fa-4x fa-spin-hover"></i>
  • <p>Fully Responsive Designs</p>

  • <i class="fa fa-code fa-4x fa-spin-hover"></i>
  • <p>customized to meet your needs</p>

    I have tried to use this rule to get the the icons li elements in line but it does not work.
    #text-4 .textwidget ul li {
    position: relative;
    display: inline-block;
    }

    http://localhost
July 1, 2015 at 9:34 pm #158111
Christoph
Member

Hi,
just a friendly suggestion; The next time you paste code, please use code tags (found just above the editor, second from the right)

I don't see any ul or li elements in the code you pasted.

Make sure that "Automatically create paragraphs" is not selected at the bottom of the text widget.


https://www.christophherr.com | Genesis Customizations | Buy me a coffee

July 1, 2015 at 9:43 pm #158112
codebot5000
Member

Sorry about that I guess it took out my tags. This is what I meant to put in there

<ul>
<li><i class="fa fa-line-chart fa-4x fa-spin-hover"></i><p>SEO Friendly</p></li>
<li><i class="fa fa-mobile fa-4x fa-spin-hover"></i><p>Fully Responsive</p></li>
<li><i class="fa fa-code fa-4x fa-spin-hover"></i><p>Customized For your Needs</p></li>
</ul>

and the css:

#text-4 .textwidget ul li {
position: relative;
display: inline-block;
}

Automatically create paragraphs is not selected. I have tried to a million thins to get these to go horizontal but nothing seems to work.

July 1, 2015 at 10:47 pm #158117
Christoph
Member

No problem.
What exactly do you want to have on one line?
The individual font-awesome and <p> tags on one line,
http://screencast.com/t/7ZUEAPUlUPF1

or all the

  • elements on one "line" with font-awesome on top of the <p> tags,
    http://screencast.com/t/VjD4g8aPMw


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • July 1, 2015 at 11:13 pm #158120
    codebot5000
    Member

    I'm trying to do all the elements on one line like your second example. Right now they are stack up on top of each other. The thing is, I don't want to have the text spinning with the icons. That's why I made separate p tags instead of putting them in the i's. I know how to do this with basic CSS, but it doesn't seem to work within the widget area. Working with CSS in WordPress Seems to be a pain.

    July 1, 2015 at 11:55 pm #158123
    Christoph
    Member

    <span> tags are working to put everything on one line:
    http://parallax.excellentwpsites.com/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 2, 2015 at 7:50 am #158147
    codebot5000
    Member

    Could you copy and paste your css for this? I cannot find it in your style sheet. Are you able to get the writing underneath the icons?

    Thanks a lot I appreciate your help.

    July 2, 2015 at 7:56 am #158149
    codebot5000
    Member

    I tried this but it doesn't seem to do anything

    #text-2 .textwidget li span {
        display: inline-block;
    }
    July 2, 2015 at 9:04 am #158157
    Christoph
    Member

    I believe you are too specific with your selectors.

    #text-2 li {
    display: inline-block;
    }

    I changed the <span> back to <p> to get font awesome icons and text on separate lines and added some padding to the sides.

    <ul>
    <li><i class="fa fa-line-chart fa-4x fa-spin"></i><p>SEO Friendly</p> </li>
    <li><i class="fa fa-mobile fa-4x fa-spin"></i><p>Fully Responsive</p></li>
    <li><i class="fa fa-code fa-4x fa-spin"></i><p>Customized For your Needs</p></li>
    </ul>
    #text-2 li {
    display: inline-block;
    padding: 0 20px;
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 2, 2015 at 9:05 am #158158
    codebot5000
    Member

    I got it! Thanks for all your help. I ended up doing this:

    <ul>
    <li><i class="fa fa-line-chart fa-4x fa-spin-hover"></i><p>SEO Friendly</p></li>
    <li><i class="fa fa-mobile fa-4x fa-spin-hover"></i><p>Fully Responsive</p></li>
    <li><i class="fa fa-code fa-4x fa-spin-hover"></i><p>Customized For your Needs</p></li>
    </ul>
    

    CSS:

    #text-11 .textwidget ul li {
    	position: relative;
    	display: inline-block;
    }
    July 2, 2015 at 9:08 am #158159
    codebot5000
    Member

    Oh that works too thanks for your help!

    July 2, 2015 at 9:15 am #158162
    Christoph
    Member

    You are welcome. 🙂
    I´m glad you found a solution.

    Could you please set the topic as resolved so it can be closed?


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
  • Viewing 12 posts - 1 through 12 (of 12 total)
    • The topic ‘creating inline elements in a widget area’ is closed to new replies.

    CTA

    Ready to get started? Create a site or shop for themes.

    Create a site with WP EngineShop for Themes

    Footer

    StudioPress

    © 2026 WPEngine, Inc.

    Products
    • Create a Site with WP Engine
    • Shop for Themes
    • Theme Features
    • Get Started
    • Showcase
    Company
    • Brand Assets
    • Terms of Service
    • Accptable Usse Policy
    • Privacy Policy
    • Refund Policy
    • Contact Us
    Community
    • Find Developers
    • Forums
    • Facebook Group
    • #GenesisWP
    • Showcase
    Resources
    • StudioPress Blog
    • Help & Documentation
    • FAQs
    • Code Snippets
    • Affiliates
    Connect
    • StudioPress Live
    • StudioPress FM
    • Facebook
    • Twitter
    • Dribbble