WordPress.org

Ready to get started?Download WordPress

Forums

Where is the stuff in wp_head(); coming from? (5 posts)

  1. jtt89
    Member
    Posted 2 years ago #

    I have a <?php wp_head(); ?> right before the </head> tag, and its loading all sorts of CSS styles that control the look of a page, and I cant figure out where to find it. I looked in functions.php, all the CSS files included in the theme, and there is no way to find it. I am assuming it should be in the theme files somewhere, but it isnt (or at list I havent found it yet...)

    Thank you in advance for any info.

  2. kjodle
    Member
    Posted 2 years ago #

    wp_head() is an action that allows you to add code to the <head> section of your blog, such as Google AdSense. You would need to use a child theme to do this properly.

    its loading all sorts of CSS styles that control the look of a page,

    No, this is probably coming from the theme settings itself. If your theme allows you to customise certain features, it is probably adding that as CSS to each and every page it generates. If you want to avoid this (it does add to page load time slightly), you could copy that CSS to a child theme stylesheet and then reset the theme settings back to normal.

    Which theme are you using?

  3. jtt89
    Member
    Posted 2 years ago #

    Picochic. I am actually redesigning the whole theme and kind of making my own out of this one. I am not using a child theme. I got rid of most of the CSS code anyway.

  4. jtt89
    Member
    Posted 2 years ago #

    The code was coming from theme-options.php, and in order to get rid of the code in the header I had to disable theme options in functions.php

  5. You must use wp_head() for many, many, many things to work. Don't remove it :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.