Skip to content
GeneratePress
  • Home
  • Premium
  • Site Library
  • Install
  • Help
    • Documentation
    • Support Forum
    • Contact
  • Log In
GeneratePress
  • Home
  • Premium
  • Site Library
  • Install
  • Help
    • Documentation
    • Support Forum
    • Contact
  • Log In
  • Log In
  • Free Support

[Resolved] SOCIAL NETWORKS BUTTONS ON NAV MENU BAR

Home › Forums › Support › SOCIAL NETWORKS BUTTONS ON NAV MENU BAR

  • This topic has 89 replies, 14 voices, and was last updated 3 years, 5 months ago by Ian.
Viewing 15 posts - 31 through 45 (of 90 total)
← 1 2 3 4 5 6 →
  • Author
    Posts
  • March 16, 2015 at 3:48 pm #87605
    Tom
    Lead Developer
    Lead Developer

    To make the items stick with the others, remove all of the CSS mentioned in this thread. The items will sit like regular menu items without any tweaking πŸ™‚

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    March 16, 2015 at 11:28 pm #87783
    Mark Flint

    Yeah but I want the main menu items aligned bang on centre under the centralised logo, and the social media icons out of the way on the right. But the icons are pushing the main menu items off to the left… Is there a way to fix this?

    March 17, 2015 at 8:26 am #87871
    Tom
    Lead Developer
    Lead Developer

    Ah, float: right will push the other menu items over a bit.

    Using position: absolute will make it so the other menu items ignore the social icons.

    Something like this:

    .social_icon {
          position: absolute;
          right: 0;
    }

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    March 18, 2015 at 12:59 pm #88328
    Mark Flint

    Thanks Tom. The code did work, but with a little tweaking. I had to add in !important for it to kick in and once I’d done that it ended up aligning in the right place but with both icons on top of each other. So I created CSS for each icon and adding padding to the second:

    .twitter_icon {
    position: absolute !important;
    right: 0;
    }
    .facebook_icon {
    position: absolute !important;
    right: 0;
    padding-right: 40px;
    }

    This has made it work: http://www.strawberryshop.flintmarketing.co

    However these icons don’t seem to be appearing on mobile… Any idea why that would be??

    March 18, 2015 at 4:59 pm #88384
    Tom
    Lead Developer
    Lead Developer

    You can make sure that the absolutely positioning only happens on desktop with this (instead of the above):

    @media screen and (min-width: 769px) { 
          .twitter_icon {
                position: absolute !important;
                right: 0;
          }
          .facebook_icon {
                position: absolute !important;
                right: 40px;
          }
    }

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    March 19, 2015 at 1:30 pm #88837
    Mark Flint

    Nailed it! Thanks Tom πŸ™‚

    Mark
    http://www.flintmarketing.co

    March 19, 2015 at 1:31 pm #88838
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! πŸ™‚

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    May 29, 2015 at 10:05 am #111202
    Heath

    I used these instructions and got the icons to work. (I had to use the “!important” suffix.)

    But, I like how your social icon widget has the option to “open in new window”. Can I somehow apply this functionality to the navigation icons I’ve creating using Dee’s steps?

    Thanks for having the best support EVER!

    PS – Just bought the Sections add-on and looking forward to playing with it. Can’t wait to see what add-on you put out next! Also, it might be helpful if you create Support sub-sections for each specific add-on (and the social icons widget).

    Dad Kingdom - powered by GeneratePress

    May 29, 2015 at 10:08 am #111203
    Tom
    Lead Developer
    Lead Developer

    In “Appearance > Menus”, click the “Screen Options” tab at the top right, and check the “Link Target” checkbox.

    Now open your menu items, and you’ll see an option to open your links in a new window πŸ™‚

    BTW, in GP 1.2.9.7, I added a built in class to float menu items to the right: menu-item-float-right

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    May 29, 2015 at 10:14 am #111205
    Heath

    That was easy, Thanks! That check box should show up for URLs by default!

    What’s an example of how would you apply the new class you built in?

    Dad Kingdom - powered by GeneratePress

    May 29, 2015 at 10:15 am #111206
    Tom
    Lead Developer
    Lead Developer

    It won’t work until the next version of GP, but it would mean you could skip the !important part and adding your own CSS, and just add the class above into your CSS Class field in the menu item πŸ™‚

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    June 10, 2015 at 1:34 pm #113833
    Elio Martinez

    Hi,

    So which is the code to add the social icons in the nav menΓΊ like http://generatepress.com/? Ihave seen a lot of code and examples in this topic, but I don’t know whic code is the right one.

    Thanks-

    June 10, 2015 at 1:43 pm #113835
    Heath

    Elio, just follow the instructions on page 1 of this topic. There are basically three components: The CSS class, the icons, and the menu. Dee pretty much nails it. πŸ™‚

    Dad Kingdom - powered by GeneratePress

    June 10, 2015 at 11:58 pm #113874
    Tom
    Lead Developer
    Lead Developer

    Latest and greatest method:

    1. Add your social icons to your menu using FontAwesome in “Appearance > Menus” – add a custom link, input your social URL, and then add the FontAwesome HTML for the icon you want in the navigation label.

    2. To make it float right, go to “Screen Options” at the top right of the Menus page, and make sure “CSS Classes” is checked.

    Now open your menu item you want to float right, and add this class: menu-item-float-right

    That should be it πŸ™‚

    Documentation: http://docs.generatepress.com/
    Adding CSS: http://docs.generatepress.com/article/adding-css/
    Ongoing Development: https://generatepress.com/ongoing-development

    August 4, 2015 at 7:11 am #126318
    Monica

    Hi,

    I cannot manage to make it work. I added the plugin Simple Custom CSS and the following:

    .social_icon {
    float: right;
    }

    Checked the CSS class on the screen options.

    And tried the following:

    Url: my Facebook url
    navigation label: <i class=”fa fa-facebook”></i>
    CSS Classes: social_icon

    but it does not work. tried a few variations but cannot manage to get it to work.

    I also tried tin stalling the lightweight social icons plugin but it doe snot give me the option to add urls. Wanted to attach some screenshots to show you but I cannot do it here.

    I am trying to put the social icons to the right above the navigation menu. Any suggestions? Thanks.

  • Author
    Posts
Viewing 15 posts - 31 through 45 (of 90 total)
← 1 2 3 4 5 6 →
  • You must be logged in to reply to this topic.
Log In

Common Issues

  • Missing style.css
  • Updating errors
  • Plugin Install Failed

Useful Articles

  • Installing GP Premium
  • Installing GeneratePress
  • How to add CSS
  • How to add PHP

GeneratePress

  • About
  • Premium
  • Site Library
  • Gutenberg
  • Affiliates
  • Reviews
  • Brand Assets
  • Blog
  • We’re Hiring!

Support

  • Documentation
  • Contact Us
  • Support Forums
  • Fastest WordPress Theme
  • Changelogs
  • Legal
  • Donate
  • Translate

Popular FAQs

  • Install GeneratePress
  • Installing GP Premium
  • Missing style.css
  • Plugin Install Failed
  • Adding CSS
  • Adding PHP
  • WordPress Hosting

Social

  • Facebook
  • Twitter
  • WordPress
  • GitHub
Made with on Vancouver Island
  • Home
  • Premium
  • Site Library
  • Install
  • Contact
  • Support Forum
  • Documentation
  • Account
  • Checkout