Add custom code on new update

Posted in: Newspaper
Post count: 80

Hi all,

I have a custom ad box placed just above the featured image on single_template_2.php. I used to call the ad by using the following code: <?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1" tdc_css=""]'); ?>

The problem is that the structure of the file after the update is very different, and I am unable to find the correct position where I should put the code inside the single_template_2 file.

Regards,
Ronaldo

Post count: 35449

Hi,

Now you can find the single_template_2.php in wp-content/plugins/td-composer/legacy/Newspaper/parts/single/single_template_2.php -> https://www.screencast.com/t/jJTgMIXf8dX

Hope this will help you!
Thanks.

Post count: 80

Hi Calin, I am aware of that. But my question is where inside the single_template_2.php I should add the shortcode so the ad will appear above the featured image.

Post count: 35449

Hi,

If you want to set the ad above the feature image you need to set the code in -> wp-content/plugins/td-composer/legacy/Newspaper/parts/single/loop-single-2.php
-> https://www.screencast.com/t/GAvLOeDsw

Thanks.

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