Add more custom ads

Posted in: Newspaper
Post count: 14

How can I add more custom ads? I have custom ad 1, 2, 3, 4, 5. Can I add in panel 6, 7, 8,… how many ads I need to use in different sidebars?

Post count: 35449

Hi,

You want to have more then 5 custom ad ? if is so, in order to add more custom ad you need to edit some files from theme.
You can set the custom ad 1 ( for example ) and set in in more box ad.

Thank you for your understanding.

Post count: 14

I need more positions for ads in the site with Newspaper theme. in every custom ad (1,2,3,…) I can set up only one position.
Where I can find file to modify? Where are custom ads in theme files? Function.php? Some directory?
Thank you for answer.

Post count: 35449

Hi,

There is no limit number for ads;
In order to add more Custom ad in theme panel you need to the file td_config.php from includes and td_block_ad_box.php from includes>shortcodes
All you need to do is to go in td_config.php on line 1773 and add as many Custom ad you need ( https://www.screencast.com/t/NpjrcemcnGnP in this example will add 6 and 7 ), after that look for the line 29443 https://www.screencast.com/t/Ujx6mMXQxmX
After that go in td_block_ad_box.php look for the line 433 https://www.screencast.com/t/ycLYFHZNhKtr after that look for the line 109 https://www.screencast.com/t/sj9MWUhz

Resultes: https://www.screencast.com/t/I7TR1Ly4
https://www.screencast.com/t/c2FwE7Ho
https://www.screencast.com/t/mUTKInXk04w
Hope this will help you.

Thank you.

Post count: 14

Thank you very much for help! I do it immediately!

Post count: 14

It works! But can I use it with child theme?

Post count: 14

If I use the file in theme directory it works, but it doesn’t work with files in child theme.

Post count: 35449

Hi,

Unfortunately will not work in child theme.
Here is the documentation about Child theme support:
-> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you for your understanding.

Post count: 12

Hey Calin,

This is extremely helpful. But with the latest release this is broken. Can you update it for 9.6.1?

Thanks,

Post count: 35449

Hi,

That was just a temporary solution, because then that was the only way to can set some more ads in your website using only our theme ( without using plugins for ads ); now if you have Newspaper v9.6.1 is no need to add more custom ad fields in theme files, you can insert the ads code with tagDiv Composer directly in ad box -> https://www.screencast.com/t/F0UOO05NAp
( exactly how you set it in custom ads in theme panel).

Thank you!

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