Change menu for a specific category
-
Hi to everyone.
With this code, I go to hide the Italian menu for the English category on the desktop.add_filter( 'generate_navigation_location','tu_move_navigation' ); function tu_move_navigation( $location ) { if ( is_category( 11 ) && !wp_is_mobile() || in_category( 11 ) && !wp_is_mobile() ) { return ''; } return $location; }
If I add code (that is English menu) inside
return ''
returns HTML entities, although the browser does not show anything, just on the code source page.
Any ideas to work out?
Thanks.The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Change menu for a specific category’ is closed to new replies.