• 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

Moving shortcode object

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 › Moving shortcode object

This topic is: resolved

Tagged: www.lifeandlemurs.com

  • This topic has 8 replies, 3 voices, and was last updated 10 years, 11 months ago by jleslie.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • May 27, 2014 at 9:10 am #106991
    jleslie
    Member

    Hi,

    I'm trying to move a shortcode object (social media icons generated by Feather) to the right of my primary navigation menu. Is this possible? I can move other images or text - but don't know what to do with this.

    Grateful for any help!

    http://www.lifeandlemurs.com
    May 29, 2014 at 7:10 pm #107388
    carroc
    Member

    Looks like you figured it out?


    ~Carleigh
    Genesis Lover Skype Group
    http://carleighrochon.com

    May 30, 2014 at 8:11 am #107471
    jleslie
    Member

    I got it to move to the right, but now it has spaces in between the icons and looks like it widened the menu as well.

    Any idea what is adding those spaces and how to remove them? Here is the code:

    $menu .= sprintf( '<li class="right your-custom-code-class">%s</li>', do_shortcode( '[feather_follow size="22"]' ) );

    Thanks!

    May 30, 2014 at 9:44 am #107485
    carroc
    Member

    If you give it a class within (class="right your-custom-code-class") then maybe you can override more styles?


    ~Carleigh
    Genesis Lover Skype Group
    http://carleighrochon.com

    June 2, 2014 at 9:50 am #107841
    jleslie
    Member

    I'm sorry, Carleigh, I don't understand what you mean? I'm just not far enough along in my understanding to grasp what is going on.

    I was originally following these instructions for customizing the nav bar at http://www.rfmeier.net/add-a-custom-primary-nav-extras-within-genesis/#comment-7455.

    Any pointers in the right direction would be appreciated. Thanks so much for your help!

    June 4, 2014 at 5:04 am #108045
    bandj
    Member

    Try adding padding to #nav li.right a

    padding: 6px 5px 5px;

    June 4, 2014 at 11:03 am #108077
    jleslie
    Member

    Thanks bandj! When I try that it causes it to go vertical.

    June 4, 2014 at 11:59 am #108087
    carroc
    Member

    remove the above padding that you added. Add this to your stylesheet:

    li.your-custom-code-class a.synved-social-button {
    float: right;
    }


    ~Carleigh
    Genesis Lover Skype Group
    http://carleighrochon.com

    June 4, 2014 at 3:48 pm #108106
    jleslie
    Member

    Thank you for your help. Nothing seemed to be working until this was suggested - after replacing 'your custom code' for 'main menu icons' I added this to my stylesheet:

    #nav li.main-menu-icons{
        float: right;
    }
     
    #nav li.main-menu-icons a{
        display: inline-block !important;
        margin-bottom: 0 !important;
        border-right: none;
        margin-right: 10px !important;
        padding: 6px 0 5px;
    }
     
    #nav li.main-menu-icons a:hover, 
    #nav li.main-menu-icons a:active,
    #nav li.main-menu-icons:hover a{
        background: none !important;
    }

    That seems to work perfectly. Again, thanks everyone for your help!

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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