Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi cheungra,

    Please put this code on Dashboard -> Appearance -> Customize -> Custom CSS/Additional CSS

    #main, #sidebar-primary, #sidebar-secondary {
    margin-top: 0px;
    }
    Thread Starter cheungra

    (@cheungra)

    Thanks for your immediate response. Unfortunately – it did not work. I have this CSS code for the homepage header to shrink the whitespace. Is that effecting this?

    .home #main.content-area {
        padding-top:0px;
    }
    
    .home .entry-content > .alignfull:first-child {
        margin-top: 0;}
    
    .home .entry-content > .alignfull:first-child {
        margin-bottom: 15px;}
    
    .entry-content > [class*="wp-block-"]:not(:last-child) {
        margin-bottom: 0;
    }
    figure.wp-block-image {
        line-height: 0;
    }

    Hi cheungra,

    My bad. It should be padding, not margin. Please try this code.

    #main, #sidebar-primary, #sidebar-secondary {
    padding-top: 0px;
    }
    • This reply was modified 3 years, 9 months ago by adinugroho.
    Thread Starter cheungra

    (@cheungra)

    Thank you! It works!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘remove whitespace below header’ is closed to new replies.