Hello !
Please take a look at this topic regarding your issue: https://forum.tagdiv.com/topic/creating-additional-custom-ads/
Thank you !
Hi.
I Understand well how to set Custom AD directly with TD Composer, thanks.
But I can’t chose this option when I add an [TagDiv]_Ad_Box widget in my sidebars; I only may chose from a predefined list of ads slot, no box to insert custom code.
That’s why we need additional Custom_Ad slots in theme panel…
Suggestions?
D.
Hello !
Sorry for missunderstanding your issue.
There are 2 ways of adding the custom ad boxes you want. Please take a look here: https://forum.tagdiv.com/custom-ad-spots/
Thank you !
Hello !
So in order to add more custom boxes you will have to make some changes to your theme files. You will need an app like Notepad++ or PHP Storm or other php editors.
First step: Go into wp-content\td-composer\legacy\Newspaper\includes and find TD_CONFIG.PHP like here (I run on localhost so my path it’s a bit different) – https://www.screencast.com/t/TLuDXGSZ
Open TD_CONFIG.PHP and do the next modifications starting with row nr. 2697: https://www.screencast.com/t/Th035DIvGge
On row nr: 31239 you will have to do the following modifications : https://www.screencast.com/t/dpametaS
That is it for the TD_CONFIG.PHP, now we open TD_BLOCK_AD_BOX.PHP wich is located in: \wp-content\plugins\td-composer\legacy\Newspaper\includes\shortcodes\td_block_ad_box.php
Here we do the following modifications on the row nr. 743: https://www.screencast.com/t/0e0DyMjmdx
And the result should look like this: https://www.screencast.com/t/qwP9I1o3E
You can add as many custom ad boxes as you want. Please be carefull and pay attention when doing this modifications. I recommend doing them on a localhost first to make sure that everything runs great.
Hope this was helpfull !
Thank you !