Hi,
I try the solution for newspaper 4 but no solution. Do you know of it is possible to add a 970×250 ad for all the pages and post without a custom action in visual composer.
The result is the ad under the menu bar< not the top header but the main header > we used the default menu style.
I need the same postion as Newspaper 4:http://screencast.com/t/UdpqvFyrOl
The following is not working;
Hi,
Please add the value inside the panel_ads.php file – http://screencast.com/t/om4CzClEd like Emil suggested then use the do_shortcode() function to place the ad you use inside an ad box in theme panel > ads, like this: http://screencast.com/t/yk9RG2diwKyj
Here si the code you have to add:
echo do_shortcode(‘[td_ad_box spot_id=”custom_ad_1″]’);
echo td_page_generator::wrap_end();
echo td_page_generator::wrap_start();
Result: http://screencast.com/t/UdpqvFyrOl
Note that my example it’s for the default post template without sidebar, you will have to modify and add the code into which template you want to have this.
Thanks,
Hi,
You have to add that value the same like above in these files – http://screencast.com/t/UFopUU1fMq – http://screencast.com/t/vacSsBG81NZu paste your code in a custom ad and set the size from Theme Panel > Ads > custom ad.
And use the shortcode function to display your ad bellow the main menu – http://screencast.com/t/wd6YOeiQBnd
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Result: http://screencast.com/t/ifKtfGmrm
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
HI Alin,
Thanks it works, we found a small bug. If we view the site from a iPad the ad is filled in with a blank page of 960×960, this is not all the times. Desktop is most of the times good, but sometimes only a white space. Is there a fix for this.
Live environment: dev.technieuws.com ( test environment ) Is there also a fix to reduce the white space under the ad?
Thanks
-
This reply was modified 11 years by
jeffreya93.
Hi,
I’ve checked your page on both iPad and desktop and it delivers only 728×90 ads, no 960×960 blank page.
The issue may come from the ad provider, i see you’re not using default adsense.
If it happens again on desktop use the browser inspector to check for errors. Let me know if you find something.
Thank you!
Ok, we think it is also a problem with the white space. Can you find a solution to reduce only the white space under the ad. There is a PX of 40/45. It is the space between the ad and the trending bar.
Thanks,
Hi,
Please try this custom css in Theme Panel > Custom Css – http://screencast.com/t/pID1Ig5vEL
.td-header-wrap .td-a-rec-id-custom_ad_5 {
margin-bottom: 0px !important;
}
Thanks!