Jump to content
Sign in to follow this  
scottbruzek

3 Separate Social Media Buttons on Nav Bar

Recommended Posts

scottbruzek

I am trying to get 3 social media icons to line up side by side on my navigation bar using hooks. They should be in the folllowing order: Facebook, Twitter, YouTube. However, they are not showing up in order, and the the links are not active. Additionally, I have a form added via a hook at the top as well. URL: http://saveeducationfirst.org/ WP 3.2.1 / PLPro 1.5.2 / PLBase 1.4.1 Here is the code I have for the hook for the SM buttons: add_action('pagelines_branding_icons_end', 'add_social_icons'); // function name function add_social_icons(){ // This hook adds the websafe shield icon to the header of your theme. The class referenced in the link can be seen in the style.css // and is the image from the CSS is placed in the images folder ?>

<?php } // end function

Share this post


Link to post
Share on other sites
Rob

It appears from the code above that the placement of the icons is set by the values in the div for each icon. If you look at the visual order versus the numeric values, they're fine. You simply need to change the value in the div. For example, if you want Facebook first, change -100 to -36 and for Youtube to be last, change -36 to -100. As for the links, I'll defer to another to help with that until I do a bit more research.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×