Tagged: child theme, CSS, wpml
-
AuthorPosts
-
January 11, 2017 at 4:19 pm #732113
Hi,
I am using Enfold with a childtheme on this site: http://www.aseal.nl/bezoek-ons/openingsuren/
A lot is done in the style.css of the childtheme.Recently I installed WPML. It look like every language gets it’s own extra stylesheet which brakes the backgrounds mainly.
Like on http://www.aseal.nl/bezoek-ons/openingsuren/?lang=de
The CSS for the background image:
html {
background-color: #004d66;
background: url(http://www.aseal.nl/cms2015/wp-content/themes/aseal/images/bg-sea.jpg);
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
is still there but a new stylesheet makes it this:
html, #scroll-top-link {
background-color: #016e9d;
}
The stylesheets url is http://www.aseal.nl/bezoek-ons/openingsuren/?lang=de
So generated by WPML I guess?How can I turn this of and make sure the website uses the CSS from style.css in the childtheme?
Thanks a lot in advance,
ArianeJanuary 12, 2017 at 6:00 am #732470Hey Ariane,
Could you try adding your Quick CSS code to each language to see if that works?
Best regards,
RikardJanuary 12, 2017 at 9:45 am #732545Hi Rikard,
I have 518 lines of CSS in style.css of my child theme, do you want me to paste them into the Quick CSS?
I can’t imagine nobody else has this problem, why do I have extra CSS styling when installing WPML? Is there no other way you can help?
Ariane
January 12, 2017 at 9:47 am #732548I did copy all 518 lines in the German Quick CSS but no change.
The weird thing is, it doesn’t happen on al pages, if you look at this one:
In Dutch, German, English:http://www.aseal.nl/bezoek-ons/?lang=de
http://www.aseal.nl/visit-us/?lang=enYou see the background is visible on al three pages. However, this page: http://www.aseal.nl/bezoek-ons/openingsuren/?lang=de stays without background image…
Cheers, Ariane
- This reply was modified 7 years, 10 months ago by ariane1001.
January 12, 2017 at 12:00 pm #732584After refreshing a couple of times it is working, but this means all CSS need to be in the Custom CSS area of the theme and the stylesheet in de Child theme is not read under different languages…
Is there something we can do about this?
thanks, Ariane
January 17, 2017 at 7:36 am #734519 -
AuthorPosts
- You must be logged in to reply to this topic.