Hello, I am wondering two things:
1. Why does Banner replace advertise? It seems the banner rotators is custom so it doesn't actually replace 'advertise' block since that is just a placeholder (I am new so may be wrong).
2. I tried to include both banner rotators and allowing to enable advertise block, but can't get anything to output in advertise block.
Here is what I did so far:
1. updated the page template:
page.tpl.php:
if ((!$usebanner && $page['advertise']) || ($usebanner && $banner_image)):
.....
endif;
print render($page['advertise']);
2. Update template so not to overwrite advertise section:
template.php:
// Set $page['advertise'] to hide advertise space (if not used).
// ##: commented out the logic to hide advertisement: Using both banners and adverts
// $vars['page']['advertise'] = $vars['usebanner'] ? FALSE : $vars['page']['advertise'];
I tried everything and nothing is written to advertise block.
Comments
Comment #1
komal.savla CreditAttribution: komal.savla commentedHi,
I have tried to Keep the advertise Block always available (also with the banner rotators). I have done the following :
I have commented out the following line from the template.php
And In page.tpl.php i have printed the advertise region in a different div outside the
And also added the following css
Thanks,
Komal