WordPress.org

Ready to get started?Download WordPress

Forums

*Embedded Styles* (3 posts)

  1. Root
    Member
    Posted 7 years ago #

    I have got the latest WP running locally. Widgets running and everything fancy. BUT when I view CSS in FF web dev it shows something it refers to as *embedded styles*. This supplies a whole lot of wierd WP type CSS !important etc for a .recentcomment a. Putting aside the fact that in the widget recentcomment is also used for an id thus duplicating it - does anyone know WTF is this CSS and where has it come from. And more pertinently how can it be <del>deleted</del> edited ?
    This might be suitable for a mod to move to beyond the codex. :)

  2. puzder
    Member
    Posted 7 years ago #

    I think it is where you can edit the style of the widget as its displayed. I am trying to add bullets to my Recent Comments lost. i tried to alter that file to no avail.

  3. yosemite
    Member
    Posted 7 years ago #

    The 'embedded' styles come from plugins/functions that use wp_head to insert styles. When you see raw css (rather then a link/import of an external file) someone is using 'echo' or 'print' to prepare raw text for insertion into the header.

    A search for something like the following (in suspected scripts/plugins) should find it:

    add_action('wp_head', 'echoed_css_code');

    I know Ozh does it that way in his themetoolkit...

Topic Closed

This topic has been closed to new replies.

About this Topic