Rankmath + weglot compatibility
-
Hi @glx77
lastest versions, rm 1.0.80, weglot 3.5
hi @forusak ,
thanks for reply, I’ll check today and get you in touch
Hi @forusak ,
i’ve just test and it seems to work on my side. Can you have access to your php error log and check if you have an error when you try to access to your sitemap?
To be sure, I’ve install rankmath and weglot on a demo site and go to http://demo-rankmath.local/sitemap_index.xml and it’s not blank. This is the test you’ve made ?
And last question : if you deactivate weglot, your sitemap works?
Thanks for your help 😉
@glx77 correct. I did it on local test site and same results.
This is what I see. There is something in source tab, but elements tab is empty.
https://prnt.sc/26jmwzqSitemap was working until I added weglot with api key, also it is workong after deactivating weglot.
@forusak ok can you try to make this update on
wp-content/plugins/weglot/src/services/class-button-service-weglot.php :
at line 148 repalce $button_html .= sprintf( ‘<aside data-wg-notranslate class=”country-selector %s”>’, $class_aside . $add_class );
by $button_html .= sprintf( ‘<aside data-wg-notranslate=”” class=”country-selector %s”>’, $class_aside . $add_class );at line 148 repalce
$button_html .= sprintf( ‘<aside data-wg-notranslate class=”country-selector %s”>’, $class_aside . $add_class );
by $button_html .= sprintf( ‘<aside data-wg-notranslate=”” class=”country-selector %s”>’, $class_aside . $add_class );It should fix you”re issue (I plan it on the next release)
Regards
-
This reply was modified 4 years, 4 months ago by
Edson Galina Fortes.
@glx77 thanks that helped. I also had to make same change on line 178.
Also can you make default exclusion for sitemaps? It is displaying weirdly styled language switcher which also doesn’t work.
You can see here https://shop.gperformance.eu/sitemap_index.xml-
This reply was modified 4 years, 4 months ago by
MarkJ.
@forusak yes it will plan for the next release 😉
RegardsHello,
I have made changes to class-button-service-weglot.php, but my sites https://almikutis.com/sitemap_index.xml
Comes with error. I also have Rankmath + weglot:XML Parsing Error: not well-formed
Location: https://almikutis.com/main-sitemap.xsl
Line Number 258, Column 48:
<!–Weglot 3.5–><aside data-wg-notranslate class=”country-selector weglot-dropdown weglot-default”><input id=”wg164371658361f91fe79ae0a12″ class=”weglot_choice” type=”checkbox” name=”menu”/><label for=”wg164371658361f91fe79ae0a12″ class=”wgcurrent wg-li weglot-lang weglot-language flag-0 lt” data-code-language=”lt” data-name-language=”LT”><span class=”wglanguage-name”>LT</span></label>- <li class=”wg-li weglot-lang weglot-language flag-0 en” data-code-language=”en”>EN
</aside> </body>
——————————————————————–^Can this be related to weglot?
UPDATE
—————–
It’s seems it’s working now after a whileHI @romandas ,
hope you’re fine. Yes the fix is plan for the next release of our plugin. You may contact weglot support to ask to a patch version of the plugin if you can’t wait for the next releas (mid february)
Regards
-
This reply was modified 4 years, 4 months ago by
The topic ‘Rankmath + weglot compatibility’ is closed to new replies.