Hi,
I want to display a menu on all pages except those based on a certain template. Here's what I'm trying, but it's still showing the menu.
Thanks for helping out,
Caleb
Display menu conditionally based on template
Started by
caleb
, Sep 28 2012 12:53 AM
menu customization
5 replies to this topic
#1
Posted 28 September 2012 - 12:53 AM
#2
Posted 28 September 2012 - 08:18 AM
Hi,
I think the best course of action would be to ask this question on the Wordpress support forums. This is more of a Wordpress related issue than a PageLines one.
I think the best course of action would be to ask this question on the Wordpress support forums. This is more of a Wordpress related issue than a PageLines one.
#3
Posted 28 September 2012 - 12:33 PM
I'll try there as well. I guess the question related to pagelines would be what template file, including path, is a page created with template 5 for example, based on such that this statement would return true
if ( is_page_template('pagelines/page.epsilon.php')
if ( is_page_template('pagelines/page.epsilon.php')
#4
Posted 28 September 2012 - 09:05 PM
Caleb,
As you know, we've provided quite a bit of support on this via LIVE, however, it is essentially a customization issue and I'm going to refer you to our Pros section. One of them might be able to help you with this, but it's so complex that neither the forum or LIVE are the proper places to get the right answers.
As you know, we've provided quite a bit of support on this via LIVE, however, it is essentially a customization issue and I'm going to refer you to our Pros section. One of them might be able to help you with this, but it's so complex that neither the forum or LIVE are the proper places to get the right answers.
#5
Posted 30 September 2012 - 05:42 PM
ok, thanks for trying. just to close this out, i couldn't figure out how to get it be conditional on a pagelines template, but i did get it to work based on page id with the following:
add_action('pagelines_before_branding_icons', 'brand_menu');
function brand_menu(){
if ( ! is_page(array(356,681,58,533)) )
wp_nav_menu( array('menu' => 'Main Menu' , menu_class => 'sf-menu'));
}
Someone else may find this useful more generically with the hooks to apply add actions to only certain pages.
add_action('pagelines_before_branding_icons', 'brand_menu');
function brand_menu(){
if ( ! is_page(array(356,681,58,533)) )
wp_nav_menu( array('menu' => 'Main Menu' , menu_class => 'sf-menu'));
}
Someone else may find this useful more generically with the hooks to apply add actions to only certain pages.
#6
Posted 30 September 2012 - 09:54 PM
The topic was marked as resolved.
Also tagged with one or more of these keywords: Resolved, menu, customization
PageLines Framework →
Customizations →
Header and Footer expansion customizationsStarted by casseysdesigns , 18 May 2013 |
|
|
||
Customizing AccordionStarted by mudgal , 17 May 2013 |
|
|
||
PageLines Framework →
Customizations →
menu bar plaStarted by depaart , 14 May 2013 |
|
|
||
PageLines Framework →
Customizations →
I only want quickslider on one blog postStarted by c_p_p , 13 May 2013 |
|
|
||
PageLines Framework →
Technical Support →
Changes to text in NavbarStarted by entrysoftware , 09 May 2013 |
|
|











