• Hi,

    I want to the ‘Product Archive Description’ to beneath the shop items, but I can’t get this to work. I am using the georgia childtheme from genesis.

    I placed this in my functions.php from the childtheme, but nothing happens:

    remove_action(‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10);
    add_action(‘woocommerce_after_shop_loop’, ‘woocommerce_product_archive_description’, 5);

    What am I doing wrong?

    http://wordpress.org/plugins/genesis-connect-woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor studiograsshopper

    (@studiograsshopper)

    I think you will need to use this code in a custom Genesis Connect for WooCommerce template. Take a look at this:

    http://www.studiograsshopper.ch/web-development/how-to-use-genesis-connect-for-woocommerce/#gcw-change-wooc-layout

    Thread Starter rhjhendr

    (@rhjhendr)

    Hi Ade/studiograsshopper,

    Thanks for replying. I think you misunderstood. My problem isn’t related to the single-product.php, but to the archive-product.php. I also posted my issue on WooThemes support forum. Here is the reply:

    ————-

    Hey Remy,

    Thank you for contacting WooThemes support. I’m happy to help you with this. Those are the correct hooks.

    remove_action( ‘woocommerce_archive_description’, ‘woocommerce_product_archive_description’, 10 );
    add_action(‘woocommerce_after_shop_loop’, ‘woocommerce_product_archive_description’, 5);

    Just tried on a local install with default Twenty Eleven/Twelve with no issues. It could be a conflict with your 3rd party theme Genesis.

    ————-

    Maybe you have a solution for this conflict?

    Thread Starter rhjhendr

    (@rhjhendr)

    Anyone?

    Hi

    add this to the theme functions.php

    remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
    
    add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 100 );

    Or create a override from the file archive-product.php in the woocommerce/templates folder into a subfolder called woocommerce in your theme folder and move the code

    <?php do_action( ‘woocommerce_archive_description’ ); ?>

    within that file to another location in the override file.

    Best regards,
    BackuPs

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move 'woocommerce_archive_description'’ is closed to new replies.