Ready to get started?Download WordPress


wp_head css problem (3 posts)

  1. alexdog1805
    Posted 1 year ago #

    when i put <?php wp_head(); ?> in header section of a custom theme it appears on <head> section a css

    html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }

    how to remove that css section?

  2. ronangelo
    Posted 1 year ago #

    Why do you want to remove that? The wp_head is important.
    That code allocates 28px for the WordPress admin bar.
    If you log out that code will disappear.
    If you don't want the admin bar to show while logged in you can uncheck Show Toolbar when viewing site option on the user page.

  3. alexdog1805
    Posted 1 year ago #

    thank you very much.

    in functions.php i wrote this function:

    show_admin_bar( false );

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.