• I have setup a page template that I would like to have certain pages use so I can display different menu items (UberMenu).

    I have created the “template-pagename.php” and it’s corresponding “template-pagename.twig”.

    In the header.twig, I have the UberMenu function as {{ fn(‘ubermenu’, ‘main’) }}

    I would like to specify it to use this “main” menu for all pages and then display a different UberMenu for any page that is assigned to a my new page template.

    Traditionally in WP I would use “is_page_template” and setup if/else statements. What is the correct way to do this with Twig?

    https://www.ads-software.com/plugins/timber-library/

  • The topic ‘Display different UberMenu for specific page template’ is closed to new replies.