DELETE BANNER SIDEBAR IN PAGE (NOT POST)

Posted in: Newspaper
Post count: 33

Hello,

I’ve some pages, with sidebar, and ads in this bar. I would like not show in pages, only post, this ads.

How can I do?

Thanks 😉

Post count: 23312

Hello Matías,

Please provide your website so I can take a closer look to it and also, so I will be able to provide a more accurate code.

Thanks.

Post count: 33

Of course Catalin!

badajozdeportes.com 😉

Post count: 23312

Hello Matias,

You should try using the code below and place it in Theme panel -> Custom CSS area.

The code is ->

.td-a-rec-id-sidebar{
display:none;
}
.single .td-a-rec-id-sidebar{
display:block;
}
.home .td-a-rec-id-custom_ad_2 {
display:none;
}

Thanks.

Post count: 33

Works in pages! But don’t show ad in categories URL :/

http://badajozdeportes.com/baloncesto/

Thanks Catalin!

  • This reply was modified 9 years by Matías.
  • This reply was modified 9 years by Matías.
Post count: 9544

What I do is make custom sidebar for posts, different one for pages, and different one for categories. That way I can have sidebar ad on posts, but not on pages, and on pages highlight company/site info, social and links to other pages as primary sidebar elements.

One option anyway 🙂

Post count: 23312

Hello,

If you want that your ads to be displayed on the Category pages, please try to use the code below ->

.td-a-rec-id-sidebar{
display:none;
}
.single .td-a-rec-id-sidebar{
display:block;
}
.category .td-a-rec-id-sidebar{
display:block;
}
.home .td-a-rec-id-custom_ad_2 {
display:none;
}

Thanks.

Post count: 33

Hello Catalin,

My idea is don’t show sidebar ad in pages (except home), but this show in categories files.

When I used this code, don’t show sidebar ad in pages neither categories files 🙁

Thanks!

Post count: 33

Now code works 😀

Thanks!

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