Ad in search page

Posted in: Newspaper
Post count: 75

Hi,

I need to display an ad in search page at the end of the search result. But the ad should only get displayed if there is some search result. If there is no result for some search query then ad should not be displayed since it is a policy violation. Please help me on how to achieve this.

Post count: 21065

Hello @Satheeshraj!

Unfortunately, we have no feature like this in our theme.
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/.

Thank you so much for your understanding!

Post count: 75

Please tell me the file which needs to be modified. I will modify. This is a mandatory feature for search page. Because there will be a violation if we show ad without content (search result).

Post count: 21065

Hello @satheeshraj!

A workaround there could be to use a cloud template with a block called posts loop, and there you can set an ad to repeat after however many posts you want. The ad should not appear when you have no results.

I hope that helps you!

Thank you!

Post count: 75

Hi,

I don’t want the ad to be placed in loop. I want the ad to be display only at the end of the search result. Please let me know what file I need to modify to achieve this.

Regards,
Satheesh

Post count: 21065

Hello Satheesh!

The path is: td-cloud-library/shortcodes/common/tdb_loop.php

Thank you!

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