Forum Replies Created
-
AuthorPosts
-
1.Plugin: “Please Note: This plugin doesn’t allow content on the root site! Please read this description carefully to see if this works for you.”
My main language is on the root, and I have all the SEO there so it will mess everything up 🙁
2. Yes, how can I do that, only for mobile?
Thanks as always.Dear Harry,
It doesn’t work in functions.php (I added it to the original theme and not the child but I don’t think that’s the problem)
I also edited the queue to make if language != than it (italian) then -> english version, but nothing.
Also, is it possible to add a <br> between the custom html (where I added my button) and the currencies in the mobile version?
Forgive my basic questions but I’ve never touched a theme code so don’t want to mess up!
Sorry for asking something not totally concerning to your theme.
Would this code work to redirect to another language (supposing that my Italian website is in the root and the English one in /en) if I add it in the index?
add_action( ‘init’, ‘custom_lang_found’ );
function custom_lang_found(){
$lang = substr($_SERVER[‘HTTP_ACCEPT_LANGUAGE’], 0, 2);
if( $lang == “en” ){
if( is_home() ){
$url = get_home_url().”/en/”;
wp_redirect( $url );
}
}
}Would suggest, for the next update, a button as for the currencies that allows you to translate with Google Translate or to link to the other website language versions.
Made it, thanks!!
May 2, 2017 at 4:51 am in reply to: Text "!DOCTYPE html PUBLIC "-//W3C…." over product images // Stock images #3642This reply has been marked as private.April 25, 2017 at 1:10 am in reply to: Text "!DOCTYPE html PUBLIC "-//W3C…." over product images // Stock images #3423Hello Harry!
Wow, thank you so much for being so fast and helpful! A tight hug and wish you all the best!
-
AuthorPosts