Controlling the gap below the top header menu

Posted in: Newspaper
Post count: 36

Hello Support,

We are looking after http://gpalpoint.pt/ and have a question about adding a leader-top advert.
Specifically I am trying to control the gap around the banner ad (specifically top and bottom).

For instance, through the web console, We can eliminate the gap below the banner ad with the following JS:
jQuery(“.td-main-page-wrap”).css(“padding-top”,”0px”);

This however does not work for all pages, and we are not so keen in trying to guess and implement “workarounds” for all the possible use cases in the existing (or future pages).

How would you recommend to approach a “fix” for this?

We are using WP 4.7 and Newspaper 7.6

Regards,
Pedro

Post count: 22421

Hi,

If you want no margin on your ad at all, you can use this code in the theme panel-> custom css box:
.td-header-style-6 .td-header-rec-wrap .td-a-rec-id-header > div{
margin-bottom:0!important;
margin-top:0!important;
}

Thank you!

Post count: 36

Hi Bogdan,

Thanks for coming back on this.

I added the suggested CSS in Theme Panel > Custom code > Custom CSS but it did not work…

the margin (top and bottom) is already 0px for “.td-header-style-6 .td-header-rec-wrap .td-a-rec-id-header > div”

Any other ideas?

Thanks

Post count: 22421

I added the same code from above in the chrome extension: http://screencast.com/t/GuLJnOStQtv
Please add the code in the theme panel->custom css box and make sure that all of the code already present in your custom code box is properly closed otherwise the new code will not apply.
Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.