Primary Nav

Social Media Buttons into Main Navigation

You see it in lots of themes, but it's not all that easy to do ... unless you know how.

You see it in lots of themes, but it’s not all that easy to do … unless you know how.


Adding social media buttons in the main navigation area requires a bit of code, here’s how.

Once you get that code in there, then it’s extra easy to set up your social media links–it’s right there in the Canvas settings under Connect.

In fact, it’s even better than previous methods of creating (link) menu items in the standard WP menu system. Using this method, the code pulls the social media links from your profiles from within Canvas’s theme options: Theme Options –> Subscribe & Connect -> Connect. Fill in the URLs for your social media platforms and you’re all set.

You might have already filled these for use elsewhere on your site. Now they'll work automatically in your main navigation, too.

You might have already filled these for use elsewhere on your site. Now they’ll work automatically in your main navigation, too.

This covers:

  • Twitter
  • Facebook
  • YouTube
  • Flickr
  • LinkedIn
  • Delicious
  • Google+
  • Dribbble
  • Instagram
  • Vimeo
  • Pinterest

Here’s the code you’ll need in your functions.php file:

Here’s some CSS you can add to gussy it up:

Note: see below where I have “yourdomain.com.” For now, you’ll need to change that to your domain until I figure out how to get it from the child theme to the proper Canvas folder.

 

 

, ,

12 Responses to Social Media Buttons into Main Navigation

  1. Sony October 29, 2013 at 7:11 pm #

    Hi Bradley can you please tell me how to add featured image BELOW post Title in canvas theme? Thank you.

  2. Lauren April 30, 2014 at 10:51 am #

    Thank you – this is brilliant! I’m customizing my background image (and the code to include other social media not listed) but will have this up soon. 🙂

    • Bradley Charbonneau May 25, 2014 at 8:43 am #

      Great to hear it. I’m curious if you mean background image of the whole site or background of the navigation.

  3. Frenkie May 21, 2014 at 12:30 am #

    Hi there, the ico subscribe social is in my images folder of my theme but when i put the url ‘images/ico-subscribe-social.png’ nothing happends, everything seems fine but it doesn’t seem to grab my images…

    Any idea?

  4. Behan - s/v Totem June 23, 2014 at 5:26 pm #

    This is kind of awesome. thank you!

  5. Behan - s/v Totem June 23, 2014 at 6:43 pm #

    OK… struggling. I’d really like to do this but can’t make it work. Have not tried the CSS “gussy up” yet because after making the first update to functions.php (in the child theme!) – nothing happened. I have some very minor style.css customization to center the nav and make the colors of menu items look the way I want… but that’s it, otherwise it’s straight Canvas 5.7.0. Any chance you can take a look for me? Working on http://69.195.124.95/~sailinj3.

    Did I miss something obvious? That would be my M.O.! :=) Thanks Bradley.

    • Behan - s/v Totem June 23, 2014 at 10:27 pm #

      Sorted! And of course, it was something obvious that I missed- the “gussying up” is how the icons graphics get there! 😛 Got it now. Just not sure I like the placement, but it’s beyond my skill to tweak… not sure I’ll keep them.

      • Bradley Charbonneau June 24, 2014 at 3:39 am #

        Glad you got it sorted, Behan. I agree, I’m not sure this is the best solution for social media placement, but it’s at least one option. Looking forward to WOO having more solutions out of the box that work better and are styled more easily. Thanks for the comments!

Trackbacks/Pingbacks

  1. Write Every Day Challenge - October 30, 2013

    […] Social Media Buttons into Main Navigation (Oct 28) […]

  2. works | - January 5, 2014

    […] https://wpu.me/social-media-main-nav/ […]

Leave a Reply