Ads – Multi Post Types Setting

Posted in: Newspaper
Post count: 6

Hi,
I have a question about Ads here. I am using multiple layout for my post, each category has different layout. I am using Article inline Ads and it works fine. But I would like to exclude Inline Ads in one category, is it possible?

thanks

Craig Tran

Post count: 23312

Hello craigtran,

Our article inline Ads feature has been designed to be used for post content page and not for the category page. So, maybe you are using a plugin with this functionality and you can exclude this from category page if you use category ID, like this -> http://screencast.com/t/bEtgMEsARR8R Using the category ID, you have to target wich elements of this page you wish to exclude, using a bit of CSS with display:none; .

Let us know how it goes and if you need more assistance for this regard, please provide your website URL and more details about how you want to change.

Thank you for the message!

Post count: 6

Hi Catalin,

Perhaps I wasn’t make it clear.

I would like to excluded “Article Inline Ads” in the post content in category “Special” meaning when the viewer read any articles belong to “special” category they should not see “Article Inline Ads”. But articles belongs to others category will see ads.

I hope this make better sense to you.

Post count: 23312

Hello craigtran,

Unfortunately, our theme does not have this option to exclude the Ads in the post content from Special category from the panel. If you want to achieve this, it is necessary to use a bit of coding and insert a condition in core file td_module_single_base.php. You could try in_category function to target all posts from specific category – https://codex.wordpress.org/Function_Reference/in_category like this -> http://screencast.com/t/fTvVAa6J

Hope this helps!

Thank you for the message!

Post count: 6

Would you please tell me where is this file?
I see td_module_single.php but not td_module_single_base.php

Thanks

Post count: 23312

Hello craigtran,

Please check the screenshot that I gave you below and you can find the td_module_single.php file http://screencast.com/t/Ers1fOfwQ5Q

Thank you for the message!

Post count: 6

I found it. using your solution is exactly what I needed. Thanks for that.
But if I upgrade them theme, will this wipe-out? Do I have to copy this file to my childtheme?

Post count: 23312

Hello craigtran,

Yes, if you did an update and the files that you has in your child theme are affected by the update the child theme will not working. You have to do a backup before and try to customize it again.

Hope this helps!

Thank you for the message!

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