Edson Galina Fortes
Forum Replies Created
-
Hi @xguimera ,
hope you’re fine ? Are you able to send me more information or there is another way I can help you ?
Regards
Hi @eissaadnan ,
hope you’re fine ? Let me know if it works on your side or if you need more help
Regards
Hi @caroliinalu ,
hope you’re fine? I’l Edson from Weglot. Sorry for the issue you’re facing. It seems, you use a plugin to generate your mobile menu and it don’t include CSS needed to display the flags.
Can you try to add this code into your css :[data-item-id="weglot-5873-et"] a{ background-position: -2856px 0 !important; background-image: url(https://caroliinalu.com/wp-content/plugins/weglot/dist/images/circular_flag.png); width: 24px !important; height: 24px !important; -webkit-background-size: auto 24px !important; background-size: auto 24px !important; margin-left:9px; } [data-item-id="weglot-5873-en"] a{ background-position: -2520px 0 !important; background-image: url(https://caroliinalu.com/wp-content/plugins/weglot/dist/images/circular_flag.png); width: 24px !important; height: 24px !important; -webkit-background-size: auto 24px !important; background-size: auto 24px !important; margin-left:9px; }It should fix your issue. Feel free to contact me if you need help
Regards- This reply was modified 3 years, 10 months ago by Edson Galina Fortes.
Hi @zonemedia ,
hope you’re fine. Do you have resolve your issue? Let me know if you need more help
Regards
hi @yellowhousedesign ,
I thin the forum is not a good place to share private data. May you can reach you’r issue to our support support@weglot.com? This way we can share more information
hi @xguimera ,
hope you’re fine. Sorry the issue you’re facing. Can you retry and check if you have any error on your php log ? What the difference between the server where it seems to work a,d the one where it’s not working ?
Regards
hi @yellowhousedesign ,
hope you’re fine. Sorry for the issue you’re facing. Can you give me the version of weglot you use and maybe an url of your website if it live to see the problem ?
Regards
Hi @eissaadnan ,
hope you’re fine? Sorrry for the issue you’re facing. May you can try this filter (https://developers.weglot.com/wordpress/filters/translations-filters#use-case):
add_filter( 'weglot_get_dom_checkers', 'custom_weglot_dom_check' ); function custom_weglot_dom_check( $dom_checkers ) { //$dom_checkers contains the list of all the class we are checking by default class Div_Slide_Title extends Weglot\Parser\Check\Dom\AbstractDomChecker { const DOM = 'img'; //Type of tag you want to detect // CSS Selector const PROPERTY = 'srcset'; //Name of the attribute in that tag uou want to detect const WORD_TYPE = Weglot\Client\Api\Enum\WordType::TEXT; //Do not change unless it's not text but a media URL like a .pdf file for example. } $dom_checkers[] = '\Div_Slide_Title'; //You add your class to the list because you want the parser to also detect it return $dom_checkers ; }It would help you translate you’re media
Don’t hesitate if you’ve other question
hi @squiggy45 ,
I think you can target them using their id or they title use the functions below on wordpress: https://developer.wordpress.org/reference/functions/get_the_title/ or https://developer.wordpress.org/reference/functions/get_the_id/Regards
hi @fredy121 ,
i’ve no test the code yet, I’ll test it asap (may be today or monday) and I’ll get you in touch
Regards
Hi @squiggy45 ,
hope you’re fine. I think use weglot to only do the update of your html lang attr is not a good idea.
I think you can do it programmtically. this post can help you : https://wordpress.stackexchange.com/questions/119495/how-do-i-change-the-value-of-lang-en-usMay you can adapt this answer to do it only for the concern blog post
Regards
Hi @fredy121 ,
I’m good too thanks. That’s weird, if the autoswitch is not activate, weglot don’t make any redirection. I investigate and get you in touch. Are you able to track where the redirection come from ? Or can you send me the content of your si_geolocate_visitor() function, i’ll would like to test it in my side to find a solution
Regards
Hi @fredy121 ,
hope you’re fine ? Sorry for the issue you’re facing. Do you have activate the autoswitch option from Weglot ? It may be a conflict with our features and yours. Can you check the log to have the details of the error when you run the function si_geolocate_visitor() ?
Regards
Hi @zonemedia ,
sorry for the late answer and the issue youre facing. May you can try to exclude the url here : https://dashboard.weglot.com/settings/exclusions with a rule “contain”
It should works. Let me know if you need more help
Regards
Hi @locker17
hope you’re fine? You’re already issue your facing ? May I can help you if oyu have an url I can check the issue ?
Regards