I would like a different advertising banner to appear in each category.
Example: Category 1 has a sponsor number 1 - this sponsor's ads are displayed only for Category 1. Category 2 has a different sponsor, so other ads are needed there. How does any html code anywhere on a category page? Do I have to create an elementor template or is there a faster way to do it?
Please access your dashboard, then go to Posts → Categories, click edit on the category you want to insert custom ads, then put the Ads code at Add Google Adsense/Custom HTML Code below this category field.
By default, the category ads code only display on the magazine template, if you want to display it on the category page, please go to Appearance → Theme Editor, open file functions.php, find line 2973:
I would like a different advertising banner to appear in each category.
Example: Category 1 has a sponsor number 1 - this sponsor's ads are displayed only for Category 1. Category 2 has a different sponsor, so other ads are needed there. How does any html code anywhere on a category page? Do I have to create an elementor template or is there a faster way to do it?
Hi,
Please access your dashboard, then go to Posts → Categories, click edit on the category you want to insert custom ads, then put the Ads code at Add Google Adsense/Custom HTML Code below this category field.
Regards,
PenciDesign.
I tried this way but it doesn't work, the screen shows my settings and here is the link
https://www.sektorkolejowy.pl/category/wydarzenia/
Hi,
By default, the category ads code only display on the magazine template, if you want to display it on the category page, please go to Appearance → Theme Editor, open file functions.php, find line 2973:
Replace with this content:
Update file then reload your site.
Regards,
PenciDesign.