BG AD for certain categories

Posted in: Newspaper
Post count: 128

Hi Team,

I just want to ask (With the use of theme settings) if its possible to add a link on every category template BG?
Or is it possible to have a BG ad just for a certain categories?

(For other option) We do have WP AD PRO AD SYSTEM plugin installed, they do have BG AD feature, but I’m not so sure how I can specify a code to just show in a certain categories?

Thanks!

Post count: 22421

Hello,
The theme has no option to use different backgorund ads for different categories. This can however be done by altering the theme files. You can follow this topic to see how it can be done: https://forum.tagdiv.com/topic/different-background-ad/
and simply replace the is_page function with:
https://developer.wordpress.org/reference/functions/is_category/
or for posts:
https://developer.wordpress.org/reference/functions/in_category/
Hope this helps.
Thank you!

Post count: 128

Hi Bogdan,

Thanks for the response.

I’d like to ask another question (different topic).
I just noticed that some of our posts are using the template from the category page.

This should be the default template – http://travel2next.com/10-canadian-cities-that-aussies-love-to-visit/
Now some posts are using category template like this – http://travel2next.com/trailing-after-the-klondike-gold-rush-yukon-canada/

Why is that?

Thanks!

Post count: 22421

Hi,
The post template does not change It’s only the background that changes. This is a default feature of the theme. A post will grab the category background you set in the theme panel. Unfortunately there is no option to remove this behavior except for altering the theme files.
Thank you!

Post count: 128

Hi again,

If a post is in 3-4 different categories or sub categories, which one will it follow? Is it random or alphabetical? Is there some way of forcing it to choose certain category?

Thanks

Post count: 22421

Hi,
If a post has multiple categories, then the primary category you set from here will have priority in the background and the category tag that is displayed on modules and blocks: http://screencast.com/t/o0ak1dwP
Thank you!

Post count: 128

That now makes sense. Thanks!

Post count: 128

Hi Bogdan,

What you said above about the primary category having priority doesn’t seem to be working. For example the primary category here should be Eastern Canada but the background and category tag is defaulting to North America. Is there a setting somewhere I’ve missed?

http://travel2next.com/interview-with-photo-artist-from-toronto-canada-kael-rebick/

Thanks!

Post count: 22421

Hi,
Please make sure you set the primary category from here: http://screencast.com/t/ztL40ylQ6Nhttp://screencast.com/t/qiB63wpY2
Thank you!

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