Hello,
Awesome theme! Absolutely awesome.. just ran in to a small problem lol.
We have advertising tags that display based on the category.
As example… NEWS,SPORT,ROS (rest of site) will all have the code display based on whether or not the post has that category OR, it’s the category they are viewing. There are also some categories that we have custom static images for but I see it’s already available to set a background image for a category but I don’t see option for URL. But, we can replace those with unique tags instead of static images so all I need to know is how do I get to set advert tags as background (so that it also displays like it does not boxed with background image set).
We have a <?php global $res_str;….. setup in the header then an example tag or start is this:
<?php global $res_str; ?>
<?php if($res_str == 'home'){ ?>
<script language="javascript">
<!--
if (window.adgroupid == undefined) {
window.adgroupid = Math.round(Math.random() * 1000);
}
document.write('<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/1637/5594382/0/16/ADTECH;loc=100;target=_blank;grp='+window.adgroupid+';misc='+new Date().getTime()+'"></scri'+'pt>');
//-->
</script><noscript></noscript>
<?php }elseif($res_str == 'sports'){ ?>
<script language="javascript">
<!--
if (window.adgroupid == undefined) {
window.adgroupid = Math.round(Math.random() * 1000);
}
document.write('<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/1637/5594387/0/16/ADTECH;loc=100;target=_blank;grp='+window.adgroupid+';misc='+new Date().getTime()+'"></scri'+'pt>');
//-->
</script><noscript></noscript>
<!-- End of JavaScript Tag -->
<?php }elseif($res_str == 'news'){ ?>
<!-- ADT News OVERLAY -->
<!--JavaScript Tag with group ID // Tag for network 1637: Blue Sky Publications- 365 // Website: The South African // Page: News // Placement: News - Overlay - 1x1 (5594383) // created at: Feb 24, 2015 10:26:55 AM-->
<script language="javascript">
<!--
if (window.adgroupid == undefined) {
window.adgroupid = Math.round(Math.random() * 1000);
}
document.write('<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/1637/5594383/0/16/ADTECH;loc=100;target=_blank;grp='+window.adgroupid+';misc='+new Date().getTime()+'"></scri'+'pt>');
//-->
</script><noscript></noscript>
<!-- End of JavaScript Tag -->
<?php }elseif($res_str ==.... (continued)
Then it ends with ;
<?php }else{ ?>… Where ROS is rest of site, if none of the above met then that one will display.
<!-- ADT ROS OVERLAY -->
I have the code, the code setup I just don’t know how to replace the BACKGROUND IMAGE Part with the existing code we have.
I hope you can help. THanks!
Hi,
Unfortunately i cannot provide a solution for your code, i can only provide details on how the background ad is managed by the theme, you can find the code here – http://screencast.com/t/YoO81iwh – http://screencast.com/t/1tv00BezQrrU – Hope this helps.
Thank you!
Hello,
I am still stuck with this one. THe problem is the client has advert tags that displays an overlay (take-over) background advert that covers the background of the theme. None of the header options are true boxed so it is not displaying, you can see on this page thesouthafrican.com if you inspect element we have the tag showing in the code but theme does not allow display.
<!– ADT OVERLAY –>
<script language=”javascript”>
<!–
if (window.adgroupid == undefined) {
window.adgroupid = Math.round(Math.random() * 1000);
}
document.write(‘<scr’+’ipt language=”javascript1.1″ src=”http://adserver.adtech.de/addyn/3.0/1637/5594382/0/16/ADTECH;loc=100;target=_blank;grp=’+window.adgroupid+’;misc=’+new Date().getTime()+'”></scri’+’pt>’);
//–>
</script><noscript></noscript>
Ok I have played a bit and added a background image, so what I need to do is replace the background image with the advert tag(s) and make sure it calls the same css boxed style that it does there. Then my problem is solved.
PLEASE HELP! I am desperate at this point as the site is live and they have overlay (take-over) adverts on different sections.
Hi,
You have an error in the console – http://screencast.com/t/RMtUMZdHEWF
Try to fix it and see if it works.
Thank you!
