Category Page custom ad

Posted in: Newspaper
Post count: 7

Can I add a custom 728 x 90 ad to my category page. Right now I have a header ad but we typically have 2 additional 728 ads at the top and bottom of the page and I cant seem to figure out where in the template to add the code?

Post count: 22421

Hello,

In order to place a custom ad in a category page, you will have to alter the theme files. You can use a ‘do_shortcode’ function to use your custom ad spots from the theme panel. For example use the code like this:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?> and place it in the category template you use: http://screencast.com/t/hEJfFrM6 (mine was a style 4)
result: http://screencast.com/t/ZuKiMZmS

Thanks.

  • This reply was modified 10 years by Bogdan B..
Post count: 7

I just cant tell which PHP file to alter to add the code or where exactly to add the code?

ex.
http://projectevemoms.com/fertility-project-eve-moms/

http://projectevemoney.com/budgetfashionista/

Post count: 7

do i have to go into the files through sftp?

Post count: 22421

Hi,

There is no option in the theme panel for inserting ads in the category page. The only way you can do this is with the method above by using FTP to alter the theme core files and force the ad to display.
You need to identify which category template you use http://screencast.com/t/RHOrRpYH4k and then alter the file with the number corresponding to the template number.
I hope this helps.

Thanks.

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