WordPress.org

Support

Support » WP-Advanced » *Embedded Styles*

*Embedded Styles*

  • 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. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘*Embedded Styles*’ is closed to new replies.
Skip to toolbar