Hi we need to set specific width and heights for custom_ad_1 in Newspaper 10.3.6.1 with our child theme
On our old newspaper 8.8 child theme we customized:
wp-content/themes/Newspaper-child/includes/shortcodes/td_block_ad_box.php
'custom_ad_1' => array (
'm_w' => '700', // big monitor - width
'm_h' => '400', // big monitor - height
'tl_w' => '700', // tablet_landscape width
'tl_h' => '400', // tablet_landscape height
'tp_w' => '600', // tablet_portrait width
'tp_h' => '400', // tablet_portrait height
'p_w' => '320', // phone width
'p_h' => '700' // phone height
),
How can we do the same with Newspaper X 10.3.6.1 child theme?
Thanks
Hi,
Now this file is locate on this path -> wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_ad_box.php
Also if you want you can use with tagDiv Composer the ad box and set a code in it
<div style="width: 700px; height: 400px;">
<!-- your add -->
</div>
-> https://i.imgur.com/GGNjMyI.jpg
Also this code can be set in custom ad slot too.
Hope this will help you!
Hi Calin
Thanks for the reply so we’d like to use the Custom ad tab in TD composer with the div wrapped around it but were not able to modify dimensions based on device width
We need to do 700×400 for desktop and landscape viewport and keep the auto settings for portrait and mobile viewport
Hi,
Then you can add an ad per each device using a custom css, for example :
@media screen and (min-width: 1400px) {
<div style="width: 700px; height: 400px;">
<!-- your add -->
</div>
}
and
@media screen and (max-width: 900px) and (min-width: 600px) {
<div style="width: 400px; height: 700px;">
<!-- your add -->
</div>
}
You can set this code here in ad box -> https://i.imgur.com/JQ09xDJ.png
Hope this will help you better!
Thank you!