• Resolved Travel Afrique

    (@travelafrique)


    I’m currently developing my first custom WordPress/WooCommerce theme. I’m trying to customize WooCommerce but somehow the advices from the WooCommerce Theme Developer Handbook aren’t working. I’ve added the theme support in the function.php file. That’s the code I used:

    function travelafrique_woocommerce_support(){
        add_theme_support('woocommerce');
    }
    
    add_action('after_setup_theme', 'travelafrique_woocommerce_support');

    I also can’t override template files by copying WooCommerce Template files into my Themes folder. I also know that the correct way to that would be by copying the necessary files into the following folder wp-content/themes/MYTHEME/woocommerce/templates

    I’ve spent already two days trying to fix, this but I can’t see, what has gone wrong. Any help would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @travelafrique

    You should post the solution if you’ve found some solution as it can be helpful to everyone.

    I also can’t override template files by copying WooCommerce Template files into my Themes folder. I also know that the correct way to that would be by copying the necessary files into the following folder wp-content/themes/MYTHEME/woocommerce/templates

    The templates folder is not necessary in your own theme

    How to override a template? A example.

    To override the shop page,
    copy: wp-content/plugins/woocommerce/templates/archive-product.php
    to: wp-content/themes/your_theme_name/woocommerce/archive-product.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘woocommerce.php is not overriding page.ph’ is closed to new replies.