![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I created a filter to add content (social media icons) to my main nav. There are two templates that I created that I do not want the social media icons to show up on their page id's are 917 and 919.
Here is my add filter code that I put in functions.php add_filter('genesis_nav_items','follow_icons',10,5 ); add_filter('wp_nav_menu_items','follow_icons',10,5 ); function follow_icons($menu, $args) { $args = (array)$args; if ( $args['theme_location'] != 'primary' ) return $menu; $follow = '<li class="right"></li>'; return $menu.$follow; } I want to exclude or remove the two pages from this filter, how do I do that Note: I excluded the actullay <li> elements for this explanation because it was too long. Can this be done? Thank you Melissa |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Genesis Loop Filters List | MobilityHosting | General Discussion | 7 | 03-18-2011 01:40 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us