Menu Item Visibility Control plugin - what tag to use for "all other templates"

Based on this thread https://theme.co/apex/forum/t/alternate-navigation-for-user-section-login-modal/45988/2 I just started using the Menu Item Visibility Control plugin https://wordpress.org/plugins/menu-items-visibility-control/ and Conditional Tags https://codex.wordpress.org/Conditional_Tags. Right away I see this working well.

Here’s my website: https://soniawilkinsonart.com
Here’s the coaching section that is currently hidden from the main site, the one I want to have a unique menu for: https://soniawilkinsonart.com/art-design-coach/

My ultimate goal is to change the menu when the person is in the coaching section. I don’t want to have to pay for the PRO theme to do this. I’m using the template tag for the visibility setting: is_page_template( template-artdesigncoach.php’ ). Note, this is a custom template I created just for the one section, and it’s saved under my x-child theme folder. I could use the category tags, but whatever. I’m here now, so thought I’d work with the templates.

My question (finally) is - what template file can I tag to cover all the other templates? like is_page_template( ‘global.php’ ) or is_page_template( ‘default.php’ ) ??

Or do I have to do an array of all the possible templates? is_page_template( array( template-blank-1.php, template-blank-2.php, template-blank-3.php, …) ) ???

Thanks for your help in advance!! :slight_smile:

Sonia

BTW, this tag did NOT work (no menu showed up along the top and no content below - just the logo and black bar along the top). Too long?

is_page_template( array( template-blank-1.php, template-blank-2.php, template-blank-3.php, template-blank-4.php, template-blank-5.php, template-blank-6.php, template-blank-7.php, template-blank-8.php, template-layout-content-sidebar.php, template-layout-full-width.php, template-layout-portfolio.php, template-layout-sidebar-content.php ) )

UPDATE: I figured out I had missed the ’ bit on the code above. DOH! I also got rid of all except the templates I actually use.

This was a bit of a mind bender, but I got it to work nicely. I’m no coder, but I was able to figure this one out with only a few Advils to help me along. :wink:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.