• 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?

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

    Thread Starter alexdog1805

    (@alexdog1805)

    thank you very much.

    in functions.php i wrote this function:

    show_admin_bar( false );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_head css problem’ is closed to new replies.