Menu on single post template

Hi,

Im currently using Strong Testimonials for my testimonials and also Menu Swapper to make different menus depending on the page im working on. Ive been able to change most of the menus, but i cant find how to change the menu when i create go to a specific testimonial (ie www.mysite.com/testimonial/my-first-testimonial).

The reason i need to change the menu is because im using a one page navigation on the homepage so i can scroll to the different sections but when im not on the homepage they wont work so i need to have another menu to go back basically.

Thanks in advance

Juan

Hi There,

Thanks for writing in! Please review the code sample provided in the following thread (https://theme.co/apex/forums/topic/custom-menu-for-posts-page/).

Instead of is_home() you can use of the inbuilt functions provided with WordPress core.

For example
-(https://developer.wordpress.org/reference/functions/is_singular/)
-(https://developer.wordpress.org/reference/functions/is_single/)
-(https://developer.wordpress.org/reference/functions/is_page/)

Hope that helps.

I see that i need to use a child theme in order to make those kind of changes, is that correct?

If so i have a couple of questions:

  1. if i already have the site the want i want it (without using a child), if i need to use a child theme i need to start over?
  2. If i use a child theme i can update the theme and plugins and everything will be updated correctly and new functionalities added?

thanks

Hi again,

To make the template changes you need to install a Child Theme, otherwise your changes will be overwritten whenever you update your theme to latest version. To setup a child theme please see https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57

  1. No, you don’t need to start over, you can simply install the Child Theme and start making changes in there without worrying of losing the changes. Child Theme only inherits the functionality and styling of the parent theme. Child themes are the recommended way of modifying an existing theme.

2, Yes you can update everything normally.

However if you only need a way to go back to the homepage using one page navigation, you can do it with single menu, you won’t be needing an extra menu. Just give full URL of the page instead of just ID’s see https://theme.co/apex/forum/t/trouble-with-menu-with-site-that-combines-single-page-and-multiple-page-design/7607/2

Hope this helps!

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