• Resolved AlexS

    (@alexarium)


    I am adding custom CSS which I first test for validation.
    The test result is fine according to https://jigsaw.w3.org/css-validator/validator

    When I paste the CSS code into the Custom CSS section of the settings, I get the message:

    Unsafe strings were found in your CSS and have been filtered out.

    I compare the stripped out CSS with the original code I pasted (can do this via https://www.diffchecker.com/diff ) and there are no differences at all between the two pieces of code.

    How can I see what exactly those filtered out unsafe strings are, and why are they unsafe?

    Using latest WP, latest Pinnacle, latest Redux

    Thanks in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is it a large bit of code? If not, can you post it here for us to see?

    Thread Starter AlexS

    (@alexarium)

    Wow, that was fast!

    Yes it’s quite large

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you put your code into PasteBin and link us to that: https://pastebin.com ?

    Thread Starter AlexS

    (@alexarium)

    Here’s the link

    https://pastebin.com/raw.php?i=yMyA4YJR

    (hope I did this correctly, never done it before)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What happens if you take this bit out:

    .single-article .entry-title,
    .postlist article .entry-title,
    #respond > p {
        text-align: center;
    }

    Does the issue go away?

    Thread Starter AlexS

    (@alexarium)

    Andrew, you Sir are a STAR.

    Thank you so much.

    Just for the knowledge of things, could you please elaborate why that’s happening?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I had this problem with a plugin and personally I think it’s an unnecessary security layer. I don’t think it improves security to disable certain characters in CSS files, but I’m not an expert. The lessthan and greaterthan characters are perfectly acceptable in CSS. It’s something that the theme author should discuss with you.

    Thread Starter AlexS

    (@alexarium)

    So it was this character, I see.

    Thanks a lot for your time and help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unsafe strings were found in your CSS and have been filtered out.’ is closed to new replies.