StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-17-2011, 01:33 PM
meljohnson's Avatar
meljohnson meljohnson is offline
Registered User
Pro Plus Member
 
Join Date: Dec 2010
Posts: 24
Default Removing Filters for certain pages

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Genesis Loop Filters List MobilityHosting General Discussion 7 03-18-2011 01:40 PM


All times are GMT -5. The time now is 02:26 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.