Jump to content

Social Icons In Classic Nav?

Recommended Posts




I'm having trouble placing the social icons in the same "row" as the main navigation (I'm using the classic nav). The ideal result would be the navigation aligned left, the icons right.


I tried the function for the customize plugin Danny provided in this post http://www.pagelines.com/forum/topic/19563-how-can-i-add-social-icons-to-the-brand-nav/, and tried to locate the correct position with ActionMap.


With this I was able to place the icons anywhere within the page but the same row as the navigation. I thought "pagelines_inside_bottom_nav" would do the job, but all that happens is a line break.


You can see my problem here: http://wuoau.org/


My additional function in functions.php looks like this


add_action('pagelines_inside_bottom_nav', 'social_icons'); function social_icons(){ ?>
<div class="icons" align="right">
I'm an animator, not a web designer. Maybe I just can't see the super-easy & super-obvious solution :)
Greetings from Berlin,

Share this post

Link to post
Share on other sites



Before we begin, I'm confused as your current site seems to be in PlatformPro, not PageLines Framework. Are you using Framework in a development site?


The social icons you see in the Branding area can't be pushed down into the Menu (Classic or NavBar) as this would a z-index problem.  However, you can place them within the menu. There are several ways to accomplish your goal. Some by direct links, others by CSS.  Which are you more comfortable, noting your comment about being a graphics artist, not a web designer?  Either method can be a bit tricky.

Former PageLines Moderator, Food Expert and Raconteur

Share this post

Link to post
Share on other sites



Thanks for the quick reply!


Yes, the old website on our main domain is platform pro, but the new website in development is pagelines framework. That's why I've inserted the extra link above: http://wuoau.org/


To answer your question: To me it doesn't matter if it's CSS or direct links. I'd like to try the cleanest method possible. And I like tricky :)

Share this post

Link to post
Share on other sites



Use this as an example:


// ------- ADDS SOCIAL ICONS TO BRANDNAV ------- //
add_action('get_search_form', 'social_icons'); function social_icons(){ ?>
<div class="icons" style="bottom: 12px; right: 1px;">
<a target="_blank" href="#/feed/" class="rsslink"><img src="/wp-content/themes/pagelines/sections/branding/rss.png" alt="RSS"></a>
<a target="_blank" href="#" class="twitterlink"><img src="/wp-content/themes/pagelines/sections/branding/twitter.png" alt="Twitter"></a>
<a target="_blank" href="#" class="facebooklink"><img src="/wp-content/themes/pagelines/sections/branding/facebook.png" alt="Facebook"></a>
<a target="_blank" href="#" class="linkedinlink"><img src="/wp-content/themes/pagelines/sections/branding/linkedin.png" alt="LinkedIn"></a>
<a target="_blank" href="#" class="youtubelink"><img src="/wp-content/themes/pagelines/sections/branding/youtube.png" alt="Youtube"></a>
<a target="_blank" href="#" class="gpluslink" style="opacity: 0.5; "><img src="/wp-content/themes/pagelines/sections/branding/google.png" alt="Google+"></a>
<script type="text/javascript"> 
jQuery('.icons a').hover(function(){ jQuery(this).fadeTo('fast', 1); },function(){ jQuery(this).fadeTo('fast', 0.5);});
<?php }


In your code, you were using the wrong location, I've replaced it with the "get_search_form", now all you need to do is use this CSS

#site .section-nav .searchform { display: none; }

To hide the search form in your NavClassic menu and the end result should look something like this:



  • Like 1

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

Wow, thanks! That is exactly what I was looking for!


By the way: of course, that only works if the search field isn't hidden in the "Header And Footer" PageLines settings... took me a while to figure that out!


I have one more question: the style elements

style="bottom: 12px; right: 1px;"
 you used in your example have no effect on the location of the icon set. I could arrange the icons at the far right with

, but they stay glued to the top of the nav bar. Is there a way to center them vertically?




Share this post

Link to post
Share on other sites

OK, problem solved:

<div class="icons" align="right" style="margin-top: 5px;">


Thanks again for your help!!!

Share this post

Link to post
Share on other sites

Hi all - I have a quick question about this as I'd like to align my social media icons the same way.


I'm using brandnav and wonder just what should the custom code section look like?  I haven't added any at all yet, and there is a body{} entry there...how should Danny's code get put into the custom code section?


Many thanks,



EDIT:  I'm not using Custom menus and can't seem to get this method working!

Share this post

Link to post
Share on other sites

Hey guys, Im trying to get this to work but I am having trouble. I am placing it in the "header" section of the custom coding. It simple just displays the icons above the NavClassic on the far left margin. How do I get it to place into the NavCLass bar where the search bar is?


Here is a screen of it right now.




Any Suggestions?



Share this post

Link to post
Share on other sites
James B

Did you add the css to align the icons like in the posts following the code?

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

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

  • Similar Content

    • Liv Kundalini
      By Liv Kundalini+
      Hi -
      Pulling my hair out over here, and would love an assist!
      Site I am building, http://www.livkundalini.com/home, has a problem with the submenu items in the nav not appearing. 
      If anyone wants to see what the Nav should look like, feel free to look in the footer on the left hand side.
      Have tried disabling Pagelines and using the twentyseventeen theme, but problem persists.
      Saw this error (pasted at the bottom of this post) displaying in the inspector, and saw discussion of Jetpack potentially being a culprit. Disabled Jetpack, but the problem persists.
      Had the hosting company even flush the server-side cache, but no avail.
      Any thoughts? Please? It's the only thing keeping me from launching this site!
      Many Thanks,
      WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403   O @ (index):7
    • bnapoli
      By bnapoli+
      http://731.34b.myftpupload.com/ this website is using the NavPro navigation in Platform 5. It has a lot of menu items, so it breaks to two lines when the window is sized down. What is the media query to make the navigation either a) switch to "mobile mode" at a higher width, or b ) expand the nav into two lines. Thanks
    • MissT
      By MissT+
      The social icons within the Sitemap Footer section plugin are not longer showing on screen. Site details will be sent via email separately.
      WordPress - 4.7.2
      Pagelines Framework Version 5.0.97
      Platform 5 Version - 5.1.6
      Section Sitemap Footer version - 5.0.4.
      All other plugins deactivated.
    • nadielp
      By nadielp+
      Hi Everyone,
      I am trying to get a single navigation item to center. I am using a scroll menu in the navigation component of Impulse. I would like to have the item in the center of the page but it defaults right. I tried setting the item to center a few different ways and nothing is working. I added {
        display: inline-block;
        position: relative;
        text-align: center;
      but that didn't work...any help would be appreciated. Site is at http://vetpaw.org/new
    • yemoonyah
      By yemoonyah+
      I just installed and added the Flipper section to my home page and it makes my navigation/menu bar items disappear.
      They do show up again when scrolling down and everything seems normal on the other pages.