different background ad

Posted in: Newspaper
Post count: 20

hi,
it is possible to have different ad image/link backgrounds for each page?

thanks

Post count: 6535

Hi

The theme was designed to have a single background ad for the entire site. To change this functionality are required lots of customizations in theme core files and unfortunately we can’t offer custom services at the moment. You can look for a plugin with a similar functionality but I can’t make any recommendation as we didn’t test any of these plugins and I am not aware of theirs functionality. If this doesn’t help and you relay need this feature my advice is to look for a professional developer from sites like http://studio.envato.com/ to do it for you.

Thanks for the message!

Post count: 20

thank you Andrei,
would not be enough for example insert a custom php or JavaScript function that check if page is home or <body class == home and set background image and link (var td_ad_background_click_link)

Post count: 6535

Hi

You could try to modify in td_background_render.php file this method and add a set of if/else conditions to display different background ads depending by page: http://screencast.com/t/hToNgtKVW

if (is_page(id1)){
$this->background_parameters['td_ad_background_click_link'] = 'url1';
}
elseif (is_page(id2)){
$this->background_parameters['td_ad_background_click_link'] = 'url2';
}

To get the post/page id follow this link: http://screencast.com/t/KvBwwo4K

Let me know how it goes.
Thanks!

Post count: 20

thanks,
this work fine but only for link, also how can I change the ad background image?

i have put this code in the same page from line 52

private function add_css_custom_background() {
$css_array = array();

if (!is_page(43)){
$this->background_parameters['theme_bg_image'] = 'anoter image';
}

//color handling
if (!empty($this->background_parameters['theme_bg_color'])) {....

it’s correct?

Post count: 22421

Hello,
The code will not work like that but.
You could set one using custom css, but you have to set the site on boxed mode, for this just set a background color(white counts as well just change from default) or add the following class to custom just target the page id class – http://screencast.com/t/LZbZdrOT0Bshttp://screencast.com/t/VZnEaVDNga
Then you can use this custom css code:

.page-id-1260{
background: white url('http://blogs.uoregon.edu/janieb/files/2014/05/95578-wq0w78.jpg') no-repeat;
background-size: 100%;
background-attachment: fixed;
}

You can use multiple instances of this code for every page. copy and paste it and change the id number an the image url.

Thank you!

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