Support » Plugins » Changing add_action(‘wp_head’,…) execution priority?

  • I’d like to override the styles set by theme stylesheets, without editing the stylesheets themselves.

    However when I do this by adding an action to wp_head, the action executes prior to the head section where the theme stylesheets are set. So the CSS in the theme stylesheets overrides the CSS in my custom action.

    add_action('wp_head', 'header_css_style');
    function header_css_style()
    	echo "<style type=\"text/css\">
    body { background-color: #FFFFFF; }

    Is it possible for me to add CSS styling to the header that executes after the theme stylesheets are set?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing add_action(‘wp_head’,…) execution priority?’ is closed to new replies.