WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_head() Auto read CSS issue (3 posts)

  1. miumax
    Member
    Posted 1 year ago #

    I have add wp_head() to head part because it want some plugins. But when I update any part of the blog in wp-admin home page auto read following new css part

    <style type="text/css" media="screen">
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }
    </style>

    When I delete path cookies it will auto removed.
    Why this happen and how to solve it?

  2. Tammie
    Member
    Posted 1 year ago #

    If I understand you correctly you are adding in wp_head as it wasn't in your theme before? wp_head is actually more important than it's often thought and you should always have in your theme.

    http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

    Just checking that you have it right before the closing /head

    wp_head();
    ?>
    </head>

    Now that output looks like coming because you've got the admin bar set to show - if that right?

  3. miumax
    Member
    Posted 1 year ago #

    yah that issue come because of the admin bar. I solve it using following in functions.php

    show_admin_bar(false);

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags