How to customize the advertisement area for a specific category?

Posted in: Newspaper
Post count: 72

I am trying to figure out how to customize placing different ads on top of Category pages. For example, for one of my categories, I need to place a specific static banner ad at the top of the category page (in the header area).

In the “Ads > Header ad” I would really like to use PHP so I can easily include a PHP conditional code to display the special ad on that category, but that area does not allow PHP code… so is there any other way to edit and include a conditional for that category to display a banner ad?

Post count: 20688

Hi,

You could design category templates with the tagDiv composer and cloud library plugin, place different ads in each of them (page content)
https://forum.tagdiv.com/tagdiv-cloud-library-plugin/

If you want to display different ads in the header itself, it will require some modifications
https://forum.tagdiv.com/topic/custom-ads-to-header-ads-section/

Or you could use a plugin such as Adrotate, I believe this has settings for something like that. More about it here
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
https://ajdg.solutions/manuals/adrotate-manuals/

Thanks

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