Archived topic
Some help about navigation category url
3 replies · Started by Sameed on March 28, 2022
hi I use polylang plugin for different language pages I use this code for logo URL
add_filter( 'generate_logo_href', function( $url ) {
if ( function_exists( 'pll_home_url' ) ) {
return pll_home_url();
}
return $url;
} );
its working fine but I get one more problem on my primary menu and off-canvas I place a category but its show default URL of category on all language page please tell which filter for it like I use filter for logo url
Hi Sameed,
Not sure I fully understand your question.
Can you link me to your site and point me to where I should be looking at?
i cant't share my site url public . but above filter is for logo URL for polyang plugin. i want same filter function for primary nav link like categoryies
GP doesn't have control of how menus are generated, it's managed by WordPress.
But if you are using Polylang, you should NOT need filter for your menu, there should be different set of menus for pages in different languages.
If you are not sure how to set it, I would recommend contacting the plugin support for detailed guidance.