• I am able to override the product page (?grid_products=prodname) using the file single-grid_products.php in the template directory.

    But I’m not sure how to edit the category page (?grid_product_category=catname). I can edit archive.php, but am unable to copy the file to archive-grid_products.php and have that template be used. I have also tried archive-grid_product_category.php.

    Am I missing something simple here?

    https://www.ads-software.com/plugins/grid-products/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor ModDish

    (@moddish)

    not sure i understand what you want, can you try to explain in more detail?

    Thread Starter BenLivingston

    (@benlivingston)

    When I view a product, the display is controlled by this file:

    wp-content/themes/MYTHEME/single-grid_products.php

    When viewing a product category, I am uncertain how to modify the displayed output using the WordPress template heirarchy. I verified that the product category page is an “archive” page, so I thought one of these files should allow me to style the category output:

    wp-content/themes/MYTHEME/archive-grid_products.php
    wp-content/themes/MYTHEME/archive-grid_product_category.php

    But neither of those work. The only way I have been able to style the category page is by editing this file:

    wp-content/themes/MYTHEME/archive.php

    Anyone know how to use a more specific template for grid products?

    Plugin Contributor ModDish

    (@moddish)

    you could simply check the category id, then write some php ti load a certain template if cat id = the id.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to override category template?’ is closed to new replies.