badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

margin-top: 32px

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #77082
    MJ
    Participant

    Help! I cannot seem to fix the 32px margin above the top menu when the WordPress admin bar is disabled.
    I tried in my child theme css:

    html, * html, body {
        margin-top: 0 !important;
    }
    

    But it’s being overridden from somewhere that I can’t find.
    Can you help me get rid of this pesky space please?

    #77120

    Hi @marcus-johnson,

    There is no issue on the code that you used. It should work. First please let us know in which pages you want the changes. Frontend or the backend (wp-admin).
    Note: Although those margins wont be seen by normal viewer of your website.

    Thanks

    #77131
    MJ
    Participant

    Front end. It’s not a big deal, just a little annoying as I’m always logged in. There’s CSS somewhere that’s overriding the CSS in my Child Theme. All other CSS can be done from the Child theme, sometimes requires !important but still works. The space (where the admin bar was) is still there. Probably in admin.css or something…

    PS. There are WAY to many CAPTCHA images to submit this!

    #77207

    The theme styles will not control for the backend pages. You have to use the plugin to control for it. Please use this plugin to remove the admin bar.
    after installing the plugin go to its setting and paste the below Custom CSS code to Admin CSS field.

    html.wp-toolbar {
    	padding-top: 0;
    }
    #wpadminbar {
    	display: none;
    }

    and if you are already using some other plugin to remove the admin bar in backend then please add the below CSS Code to it.

    html.wp-toolbar {
    	padding-top: 0;
    }

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.