• Resolved adamdjbrett

    (@adamdjbrett)


    Hello I love the plugin and how well it works with the new Twenty Twenty-one WordPress theme. I am trying to fix an issue with the whitespace between the header and the start of the Kingston homepage page demo template.

    I have added the following fix but there is still some whitespace. Please advise:

    /* fix whitespace */
    .tw-header-bg .site-content {
        padding-top: 0;
    		padding-bottom: 0;
    		margin-top: 0;
    		margin-bottom: 0;
    }
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    Thanks for your message.

    I see that you’ve added some custom CSS to fix the issue. However, while it does work, there is an easier way to achieve it.

    First, you need to remove your CSS. Then remove the margin-top of 0 that you’ve set on the first cover block (Twentig automatically applies a negative margin on the first block to remove the blank space below the header). And finally, remove the 0 padding value that you’ve set on the cover block.

    Hope that helps,

    If you enjoy Twentig, please rate it. It would really help me out 🙂
    Tom

    Thread Starter adamdjbrett

    (@adamdjbrett)

    Simple and elegant. That worked. Thank you so much.

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