Support » Fixing WordPress » Changing WP’s core Inline CSS via external CSS

  • Hello,

    I’ve tried to change the Inline CSS of WordPress’s error pages (not 403 or 404 error pages) via my external custom theme CSS but it seems to be a more complicated task than i’ve thought.

    I’m talking specifically about body#error-page and html so the page you get when you submit an empty comment form for example, it seems like !important or [stlye] tricks doesn’t work here much.

    I’ve been searching for plugins to change this dilemma but it seems there are no such plugins around.

    So has anyone managed it yet to change these hardcoded inline CSS parts of WordPress without messing with the core files?

    • This topic was modified 1 year, 9 months ago by questionator.
    • This topic was modified 1 year, 9 months ago by questionator.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    Please provide a link to a page on your site where we can see this. Thanks.

    For the page that is generated by an empty comment submission, your theme is not involved, so none of the styles are loaded. You cannot affect it this way.
    You would have to read the code for wp-comments-post.php to see if there is a filter you could use to add styles.

    Hi there and sorry for the late reply but i’ve tackled with a flu recently.

    So just to cut it short; i’ve found the “WP Inline Comment Errors” plugin for my problem.

    ps:
    @joyously you’re right.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing WP’s core Inline CSS via external CSS’ is closed to new replies.