• outdoorplaybook

    (@outdoorplaybook)


    Hi, I’ve switched to a hosting plan that does automatic updates to the latest versions of WordPress, themes, and plugins, so I’ve recoded my website to use a proper child theme to make it as update-proof as possible. But it looks like Goods Catalog is only finding my custom templates when they’re copied into the parent theme, not the child theme. Am I doing something wrong, or does Goods Catalog not support child themes?

    https://www.ads-software.com/plugins/goods-catalog/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter outdoorplaybook

    (@outdoorplaybook)

    Hello, anyone? How do I get Goods Catalog to work with a child theme?

    As a temporary solution, you can update the plugin file: /goods-catalog/inc/templates.php

    After the if statement, add an else if statement:

    else if (file_exists (get_stylesheet_directory() . '/' . $template)) {
    require_once (get_stylesheet_directory() . '/' . $template);
    }

    This searches the child theme for the template files.

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Templates in Child Theme’ is closed to new replies.