• Resolved Frank

    (@frankswift)


    Hi again,

    I have Amazon Ads that I am trying to remove from WPAdverts categories and location pages.

    The code is originally in my single.php so I was able to remove it for the ad details pages by adding single-advert.php to my theme directory, where the only thing I changed was to remove the amazon ad code.

    However the Amazon Ads are still showing up in category and location pages, so it must still be calling the single.php file in my theme? How do I stop these archive pages from doing that as well? Thanks for any info!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    You can do that by creating in your current (child) theme folder a template files for Advert Category and Location taxonomies.

    That is: create files named taxonomy-advert_category.php and taxonomy-advert_location.php as explained here https://wpadverts.com/documentation/child-themes-and-templates/ in the section “Custom Taxonomy Template”.

    BTW. If this is just a matter of hiding the Amazon Ads then it might be quicker and easier to just hide them on Category and Location pages with CSS snippet?

    Thread Starter Frank

    (@frankswift)

    Thanks, I actually tried that but our category templates for the theme is garbage, so it made the adverts look awful. We are planning to update our theme in a major project, but I think for now I just need to hide the amazon ads as a better quick fix.

    Do you know how I can apply the CSS to JUST category and location? Usually when I do custom CSS it’s for the entire website. 🙂

    Thread Starter Frank

    (@frankswift)

    I figured it out, our old theme doesn’t create unique page IDs but I found another unique identifier I could target.

    Thanks for your quick responses and suggestions, wanted to mention we are using your plugin to provide free advertising for local businesses who are suffering from the pandemic, so your plugin is doing us much good. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories and Location Pages – Customizing?’ is closed to new replies.