Support » Theme: Customizr » customizr, navbar, additional menus, page templates

  • Hi I need to silo my site based on nav-bar / menu. I have created 6 other menus & locations in CUstomizr. I now need to create 6 page templates to select the specific menu / nav-bar per page template category. Need some help finding the correct php for the Customizr nav-bar / menu to use in each page template. Help anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Assuming you followed this tutorial:

    You can wrap the function in an if statement:

        Is a Page Template being used?
    is_page_template( 'about.php' )
        Is Page Template 'about' being used?

    more here:

    Hi Giorgio, I’ve worked through it all but its still doesn’t seem to be pulling through? I am testing with the first page template by removing the main customizr menu and replacing it with the menu selected for the template page, but it is not pulling through?

    ‘// Remove customizr main menu
    remove_action ( ‘__navbar’ , array( $this , ‘tc_menu_display’ ), 30, 1);
    // display function for your menu:
    function display_solar_menu() {
    if ( tc__f( ‘__Solar_Page’ ) ) {
    echo ( has_nav_menu( ‘solar-menu’ ) ? wp_nav_menu (
    array (
    ‘theme_location’ => ‘solar-menu’,
    ‘container_id’ => ‘solar-menu’,
    ‘container_class’ => ‘solar-menu’
    ).” : ” );
    // Hook display functions for each of them on theme elements:
    add_action(‘__before_header’, ‘display_Solar_Menu’);

    I have tried this both on my child theme functions.php as well as the solar-page template with the new Customizr 3.4.6 version. The new page template has been copied from the custom-page.php file.

    Hi Leanne,
    I think there is a typo in the last line that says:
    add_action('__before_header', 'display_Solar_Menu');

    and should be:
    add_action('__before_header', 'display_solar_menu');

    if your function is called 'display_solar_menu', you need to invoke it exactly in the same way and not with capital letters 'display_Solar_Menu'.

    Let us know

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customizr, navbar, additional menus, page templates’ is closed to new replies.