Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1100389

    CaptainJune
    Participant

    I was reading over this post: custom-template-for-custom-taxonomy-archive, i kind of get how that works for normal posts.

    But how do i do that same thing but for Custom Woocommerce Taxonomies?

    My custom taxonomy is called “collection”, and I have made taxonomy-collection.php, and put that file in:
    framework > view > renew
    and nothing changed on that taxonomy page.

    #1100490

    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Woocommerce has its own standard when it comes to templates, it mostly uses template parts too. It may require copying the templates from /wp-content/plugins/woocommerce/templates/ to /wp-content/themes/x-child/woocommerce/

    All woocommerce templates and pages are dependent to /wp-content/themes/x/woocommerce.php as root, but you can follow the view path to get the actual template’s code.

    Try this one http://stackoverflow.com/questions/16353899/changes-on-archive-product-php-doesnt-work

    if ( is_singular( 'product' ) ) {
     woocommerce_content();
    }else{
    //For ANY product archive.
    //Product taxonomy, product search or /shop landing
     woocommerce_get_template( 'archive-product.php' );
    }

    On this file, \wp-content\themes\x\framework\views\{CURRENT STACK}\woocommerce.php and you can copy that to yuor child theme (eg. \wp-content\themes\x-child\framework\views\{CURRENT STACK}\woocommerce.php )

    It’s different than WordPress default archive/taxonomy templates since it’s Woocommerce’s standard.

    Thanks!

    #1100808

    CaptainJune
    Participant
    This reply has been marked as private.
    #1100837

    Christian
    Moderator

    We’re sorry but further customization from here would be getting into custom development which falls outside the scope of our support. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/

    Thank you for understanding.