Hi,
I have purchased Newspaper theme and i need background ad (not in the home page but in some others). I have, also, purchased the plugin WP PRO ADVERTISING SYSTEM, for this reason. I can put the image of the ad in the background of the selected pages but it is not clickable. The author of the plugin told me “The background ad needs to be added to the highest full page div of the theme. In your case it looked like it was the div class .td-main-content-wrap. It must be that another div is still overlapping the background ad.”
How can be the class .td-main-content-wrap clickable?
Thank you in advance.
Hello MarStat,
Unfortunately, this kind of plugin is not tested with our theme and we have no idea about the functionality of this plugin with our theme. We suggest using the inspector and check wich is the highest container of our theme -> http://screencast.com/t/qX0aP6Nzrd -> the highest container is td-outer-wrap For more information about our Background click Ad feature you can find in our documentation here -> https://forum.tagdiv.com/background-ad/ please check this tutorial and try adjusting your plugin to our theme. Please notice that we cannot provide support for untested plugins.
If you want to display more levels in our theme and if you are not aware the steps in this regard, please consider hiring a freelancer/developer to do this for your because we cannot provide custom services at the moment, sorry!
Hope this helps!
Thank you for the message!
Thank you for your answer.
The highest container ‘td-outer-wrap’ doesn’t accept background image or it is overlapped by another div so the image isn’t shown. I have already checked it.
I have read your documentation about background ad but this kind of ad is not appropriate for my case.
It will be helpful for me, if you tell me which files need to modify.
Thank you in advance!
Hello MarStat,
I did more investigations and if you change your background-colo from the panel, you can use the body to claim your background ad from your plugin. Below I gave you an example with a background-image ->
http://screencast.com/t/ZI27oaysF5Z -> http://screencast.com/t/mjF2t0TSMh6 -> http://screencast.com/t/Tez4l7LzM
The code is ->
body {
background-image: url('http://www.gettyimages.ca/gi-resources/images/Homepage/Hero/UK/CMS_Creative_164657191_Kingfisher.jpg');
}
Hope this helps!
Thank you for the message!
Hello,
finally i used categories for the background ads, putting color in the specific category, the background being clickable. I read the similar post ‘Background Image(s) z-index or order’ and i modified the file ‘td_background_render.php’ as you wrote (http://screencast.com/t/bcwMJ3S7) for category not for page.
if (is_category( ’20’ )){
$this->background_parameters[‘td_ad_background_click_link’] = “the url”;
}
The ad in the category is clickable but it isn’t in the posts of this category.
Please, could you help me? Also, i want to know if i can shorten the width of the template, in order to show the ads in 15′ screens. If you need access to the site, please, inform me.
Thank you in advance.
-
This reply was modified 10 years by
MarStat.
Hello MarStat,
If you want to use a different link ad for each category and post of this category, you have to use in_category and is_category condition and add them in td_background_render.php code file like this -> http://screencast.com/t/0mtpnMtxo9 and if you ant to have the same link for your ads, you should set it from theme panel -> http://screencast.com/t/wtOgl6nVq
The code is here -> http://pastebin.com/ZZNQCPhx
For your second request, unfortunately, our theme does not have such an option to change the width and we do not recommend it because you can break the layout. If you want to display more levels in our theme and you are not aware the steps in this regard, please consider hiring a freelancer/developer to implement this for you in our theme because we cannot provide custom services at the moment, sorry!
Hope this helps and let us know how it goes!
Thank you for the message!
Hello,
Thank you for help!
It works perfectly, now i have the possibility to add different ads in each category and associated posts.
The only remained issue is about the template width, thought that you will fix it in next version of the template.
Great job, great support, thanks you again!
Hi,
I have the same problem, but td_background_render.php file no longer exists in the current version of the theme.
Where use this condition? In functions.php is not working.
Thanks!
Luciano