Home / Forums / DynamiX Support / Custom CSS in Theme Options > Customize sanitized

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • Luisa Marra
    Participant

    I’m trying to customizing the CSS through the Theme Options menu Customize Tab and if i wirte something like:

    body > #my_custom_id {
      font-size: 1em;
    }
    

    the saved (sanitized) CSS will result as follow:

    body > #my_custom_id {
      font-size: 1em;
    }
    
    Andy
    Andy
    Keymaster

    Hi Luisa,

    This has been a nightmare task. The reason why it does it is due to WordPress protecting the database from entering bad HTML / Scripts into the DB.

    The way I’ve got around this is by checking if the user is admin / superadmin and then allowing these characters in.

    Locate: DynamiX/lib/adm/functions/core.php

    Unzip and Replace With: http://help.themeva.com/tmp/core.php.zip

    You will need to re-enter your CSS.


    Luisa Marra
    Participant

    Hi,
    thanks for the fix.
    Now it works like a charm!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.