• Resolved devisuonweb

    (@devisuonweb)


    Hi,
    Some users have already spoken about this font-size issue that changes after translation.
    I think I know the reason:
    In my case it is because of title attribute added by the theme “virtue” in head tag:
    <style type=”text/css” title=”dynamic-css”…
    After translation, for example in German, this gives:
    <style type=”text/css” title=”dynamisch-css”…
    Because of this, styles are no longer considered.
    Unfortunately I can not find how to add class=”notranslate” in this tag.
    Is it possible to add it automatically in your plugin for this kind of attribute ?
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    I do not think that changing a title attribute for style tag will break anything.

    If you can post your website address, I can check it for you.

    Thanks!

    Thread Starter devisuonweb

    (@devisuonweb)

    Source : <style type=”text/css” title=”dynamic-css” class=”options-output”>

    Source in firebug : <style class=”options-output” type=”text/css” title=”dynamisch-css”>

    If I replace in firebug dynamisch by dynamic, display is immediately correct according to css

    How can I send you url in private ? Site is not yet in production

    Plugin Author edo888

    (@edo888)

    Hi,

    In that case it will work only with the paid version.

    Or you need to think about making the style non title attribute dependent.

    You can also try to add notranslate to it like this, but I cannot tell for sure it will work:

    ‘<style type=”text/css” title=”dynamic-css” class=”options-output notranslate”>’

    Thanks!

    Thread Starter devisuonweb

    (@devisuonweb)

    I sent you site url by contact form of gtranslate.io

    Thread Starter devisuonweb

    (@devisuonweb)

    OK.
    I’ll ask theme’s developper if it’s possible to add the class notranslate.
    Thank you for your answers

    Plugin Author edo888

    (@edo888)

    Just checked your site, and it was OK for me. Did not notice any CSS issues.

    Thanks!

    Thread Starter devisuonweb

    (@devisuonweb)

    Sorry, I forgot to specify that the problem exists only with Firefox.
    No issues with IE, Edge, Chrome, Safari and Opera

    Thread Starter devisuonweb

    (@devisuonweb)

    Theme’s developper has pushed out an update removing the title.
    No more title translated, no more issue !
    Thank’s for your help and your time.

    Plugin Author edo888

    (@edo888)

    Good to hear that. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Styles (css) disabled in some languages’ is closed to new replies.