Menu doesn’t activate
-
Hi, I’m trying to create my first demo but I have trouble getting the menu to work, after the installation is complete. It’s there, but I have to manually activate it. How do I to set this automatically?
I’m using the code in After Import Custom Code Execution:$main_menu
= get_term_by( 'name', 'Main Menu', 'nav_menu'
);
‘Main Menu’ I set to main-menu, which is the name of the menu.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Menu doesn’t activate’ is closed to new replies.