[Resolved] Unexpected horizontal lines between widgets in translations
This thread is resolved. Here is a description of the problem and solution.
Problem:
The Woodmart theme shows horizontal lines in widgets when we display language specific widgets/block elements using “Display on languages” option.
Solution:
The issue is solved by adding the below CSS:
I launched my site with default language and English translation. I saw already then, that in English translation there is one unexpected horizontal line in single product page sidebar widget, but the visual issue was not so big.
Now I am translating page in one more language and doing as was told before by WPML support: adding widgets for each language separately, but I am getting some ununexpected horizontal lines between those elements. It seems it comes from separate language widgets. And now those lines are in my original language as well.
How to get rid of those lines in widget translations?
This was my previous post, when languages didn't show at all, but the problem was solved, only there was one horizontal line.. So I left this as was, because main problem was solved 🙂
Thank you for contacting WPML Support. To take a closer look at horizontal lines issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.
Your next answer will be private which means only you and I have access to it.
=== Please backup your database and website ===
✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.
✙ Please provide the example product link where I can see this issue.
I’m able to fix this issue by adding/overriding a small CSS code in the custom CSS section of the theme: hidden link and now it seems to be working correctly now, could you please check and confirm?
This looks better, but the problem is still not fully solved and it makes another problem..
English looks ok (even there are still one line on the top, which should't be there), but in Latvian and Estonian there are still lines. Less than before, but they are there.
And this css removes lines from the catalog pages with widget filters as well and everything looks messy - no lines, no spaces betweeen filters.. Before this css, those pages looked ok and there was no problem..
Thanks for your feedback. I have removed the CSS that was previously added by me. I have tried a basic troubleshooting steps but none of them worked so far. I suspect it might be a compatiblity conflict with Woodmart theme and Display on languages option in a widget. When we spot compatibility conflict we need to reproduce it on fresh WP site in order to escalate it to our compatibility team, so, I’m going to reproduce this issue at fresh WP site with WPML and Woodmart theme and will let you know the results,
I’m able to replicate the issue at fresh WP site by following the below steps:
1. Install/activate the Woodmart theme.
2. Install/activate the Woodmart core, WPML Multilingual CMS, WPML String Trasnlation, WooCommerce, and WooCommerce Multilingual plugins.
3. Created a product in the default language and translated it into a secondary language.
4. Went to Appearance >> Widgets section and added the widgets/blocks to “Single Product page widget area” and it all works good.
5. When I enabled the “Display on languages” option then it starts arising horizontal line issues with the block elements.
6. Then, I tried to use the below CSS: