Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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&#8242; 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/

    #256490

    Hi 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,
    Ismael

    #343948

    Hi 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 ?

    #345114

    Hi @jschuer,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #345131
    This reply has been marked as private.
    #345171

    Hey!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.