We help IT Professionals succeed at work.
Get Started

Force secondary Nav to display on certain pages

soujohn asked
Last Modified: 2015-04-09

I’m having an issue with a secondary navigation that doesn’t appear on certain page views of a calendar plugin that I’m using called The Events Calendar Pro. It doesn’t appear on pages other than those I have in the sub menu (Main page & Events Calendar page). I’ve discovered that this is not an issue with the Events Calendar plugin, or the theme I'm using. I’ve posted on each of their forums and support sections. It’s actually an issue with a feature that I’m using to display submenu items as a secondary navigation. I found the code for this plugin here:

It allows you to display a secondary navigation based on the menu you create in the ‘Appearance > Menus’ section of the WP backend. However, because I have not added every event view to the Events section of my menu the secondary nav bar doesn’t show up on the other view or on individual event pages. Adding all the event views and event pages would be tedious and would look really cluttered.

So now here is my question: How can I have the secondary menu that appears on the main Events page appear on all pages that are created by The Events Calendar plugin? Is there someway to hard code something into the .php file of the calendar plugin so that my nav always displays? Or some conditional statement I can code into my header.php file to make sure that my nav appears on Event pages even if they are not included in the submenu structure?

Here are some links to view:
http://casbaa.thinkcreativeinc.com/wordpress/events/ (does appear)
http://casbaa.thinkcreativeinc.com/wordpress/events/list/ (doesn’t appear)


Watch Question
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE