Menu not showing on page loaded through a rewrite rule
-
I’ve installed the responsive menu and tried both with the shortcode option disabled as with a shortcode call in my header.php. For now I have “Use Shortcode?” in the Advanced tab in the settings disabled. I have tested the menu for desktop screen sizes and mobile. This works great for almost every page except for one page. This particular page, called detail.php gets loaded through a rewrite rule in my themes function.php. On this page the normal menu shows, but on smaller displays the responsive menu doesn’t show.
Everything seems to load correctly except that the menu doesn’t show but instead it keeps showing the original non-responsive menu. Further searching points me to believe the shortcode doesnt get processed. In my details.php page I do call get_header and get_footer and in the header.php the body_class gets called. If I add a class name in the the call to body_class it shows up in the source in my browser, which makes me think that it has to do with the order of the calls to processing the shortcode and the rewrite rule, but that’s about where my knowledge fails me and I dont know how to check or fix this. Any thoughts please?
- This topic was modified 7 years, 7 months ago by .
- This topic was modified 7 years, 7 months ago by .
- This topic was modified 7 years, 7 months ago by .
- This topic was modified 7 years, 7 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Menu not showing on page loaded through a rewrite rule’ is closed to new replies.