maely94
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Polylang – Wrong redirection with the logoIn another forum discussion, I’ve found this code that I should place in the functions.php :
add_filter( ‘generate_logo_href’, ‘tu_english_navigation_logo_url’ );
function tu_english_navigation_logo_url( $url ) {
if ( ! function_exists( ‘pll_current_language’ ) ) {
return $url;
}if ( ‘English’ == pll_current_language( ‘name’ ) ) {
return ‘https://www.ruskus-patruskus.com/en/’;
}return $url;
}But I’m using underscore theme with Elementor and I think I should modify this code but I don’t know how and where.
Hope you could help me 🙂
Forum: Plugins
In reply to: [Polylang] Change x-default hreflang URL for homepageHi,
I don’t receive an answer but I still have the same issue.
For my main page https://netleaf.ca/fr/, I have a x-default hreflang but it’s not the right URL.
It’s <link rel=”alternate” href=”https://netleaf.ca/” hreflang=”x-default” /> but it suppose to be : <link rel=”alternate” href=”https://netleaf.ca/fr/” hreflang=”x-default” />
How can I change it?Moreover, for my other pages, I’m seeing :
<link rel=”alternate” href=”https://netleaf.ca/fr/agence-seo/” hreflang=”fr” /
<link rel=”alternate” href=”https://netleaf.ca/en/seo-services/” hreflang=”en” />
but there is not a x-default for my french URL. How can I add it?Thank you for your help