Tagged: dynamic css, WPLM
-
AuthorPosts
-
April 25, 2014 at 4:18 pm #256188
Hi,
My website has two languages, french and english. French is the default language and english the secondary language. I use WPML to manage the translations.
I have a weird difference between the two languages. In french, the dynamic CSS is loaded as a stylesheet, like this : <link rel=’stylesheet’ id=’avia-dynamic-css’ href=’http://optia.fr/preprod/wordpress/wp-content/uploads/dynamic_avia/enfold.css?ver=1′ type=’text/css’ media=’screen’ />
In english, it’s loaded directly in the page :
<!–
Debugging Info for Theme support:Theme: Enfold
Version: 2.4.2
Installed: enfold
AviaFramework Version: 1.8.5
AviaBuilder Version: 0.4
ML:256-PU:44-PLA:8
–><!– custom styles set at your backend–>
<style type=’text/css’ id=’dynamic-styles’>
::-moz-selection (…)
</style>The problem with this is that in the first case, the dynamic CSS is loaded before my custom.css file and in the second case it is loaded after it. This means that some CSS rules are overriden in english that shouldn’t be.
I regenerated the dynamic css files enfold.css and enfold_en.css but it hasn’t changed anything.
How can I make it so the css is loaded the same way on both languages ?
Site for reference :
FR : http://optia.fr/preprod/wordpress/
EN : http://optia.fr/preprod/wordpress/en/April 26, 2014 at 9:02 am #256490Hi kikidesoibs!
Thank you for using the theme.
First of all, you’re using an old version of the theme. Please download the latest version from your themeforest account then update the theme via FTP. Please refer to this link for more info: http://kriesi.at/documentation/enfold/updating-your-theme-files/
I checked both links but I don’t see any difference between the two. Please try to update the theme then regenerate both version of enfold.css.
Nice website. :)
Best regards,
IsmaelOctober 31, 2014 at 11:47 am #343948Hi Ismael, kikidesoibs
I have the same problem. What did you do to fix this? WP and Enfold theme are up to date.
NL (dutch) is default language.
FR: styles are loaded directly in to page, so style.css of child-theme is overridden:<!– custom styles set at your backend–>
<style type=’text/css’ id=’dynamic-styles’>
…Same page, translated with WPML:
NL: http://www.smartschool.be/aanmelden/
FR: http://www.smartschool.be/fr/aanmelden-2/How can I make it so the css is loaded the same way on both languages ?
November 3, 2014 at 7:24 am #345114Hi @jschuer,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueNovember 3, 2014 at 7:51 am #345131This reply has been marked as private.November 3, 2014 at 9:47 am #345171Hey!
Seems to be fixed now, i just re-saved the Theme Options on the French version and the dynamic style was successfully generated.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.