Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2017-05-28 19:15:21

franz
Member
Registered: 2014-07-09
Posts: 29

How to disable Ads in frontpage only

I would like to disable global top ad group in home page but to be shown everywhere else.

I am not a programmer so I need help please.

Thank you.

Offline

#2 2017-05-29 02:02:38

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: How to disable Ads in frontpage only

the code that show global top is located in header.tpl.php , so if you remove it from there will not show it  everywhere else too.
as i check code you cant just show it in all pages but not in home.

if you want to remove it

find this

<?php if (isset($this->cat_id)): echo p('adv_category', 'video-category-top', array($this->cat_id)); else: echo p('adv', 'global-top'); endif; ?>

and just remove this part

else: echo p('adv', 'global-top');

Offline

Board footer

Powered by FluxBB