• Resolved Saqib Ali

    (@saqali)


    When customizing within Additional CSS, it doesn’t recognise CSS Grid rules, such as the property grid-template-columns is recognised as an error – ‘Unexpected Token’

Viewing 2 replies - 1 through 2 (of 2 total)
  • It seems that the css property: “grid-template-columns” is newish and is not yet recognised by the customiser. Will it let you save (or publish) ?
    This leaves other options to customising your css, they include:
    – adding this change to your child theme’s style.css file.
    – installing one of the custom css plugins.
    – putting this style rule inline in your page / post
    – use the filter ‘safe_style_css’ to add this property to the list, you would need to be using a child theme to do this. There is an example of doing this here: https://stackoverflow.com/questions/27988379/wordpress-customizing-css-filters

    As a desperate measure you could hack the customiser code to recognise this property. It looks like this is in a list in file: “wp-includes/kses.php”, normally I would never suggest doing this as your change will be lost in an update, but in this case you could live with this.

    • This reply was modified 6 years, 4 months ago by RossMitchell.
    Thread Starter Saqib Ali

    (@saqali)

    Thank you @rossmitchell, I’ll just update the style sheet, for now, I just like seeing able to see live edits whilst I’m changing the CSS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customizing with Additional CSS Grid issue’ is closed to new replies.