• Resolved Cat

    (@catscholz74)


    Hello – this website is fully updated. I have copied archive-product.php into the /childtheme/woocommerce/ folder and started playing with it, to no avail.

    I need to put the product category descriptions at the bottom of the page, instead of where it is now, at the top.

    Can anyone with the necessary PHP expertise help me out with this?

    Thanks,
    -Cat

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Thread Starter Cat

    (@catscholz74)

    thank you, Caleb! I added the following code to functions.php in the child theme folder:
    // Add WooCommerce support
    function mytheme_add_woocommerce_support() {
    add_theme_support( ‘woocommerce’ );
    }

    The next line as I have it here did not work:
    add_action( ‘after_setup_theme’, ‘builder-summit-custom_add_woocommerce_support’ )

    Can you tell me what I did wrong?

    And then, I should be modifying archive-product.php in the folder /plugins/woocommerce/templates instead of in the child theme folder.

    So for that, how do I modify the php to move the product category descriptions below the product list on the category page?

    Thanks again!

    -Cat

    lorro

    (@lorro)

    I don’t think modifying archive-product.php is the right approach. The hooks are already setup before execution reaches archive-product.php. The technique is to use remove_action() calls to remove the description call from the top and then add_action() calls to put it back at the bottom.

    The standard themes are easy enough but unfortunately some themes have their own hook names and some research is needed to find the right hooks to use. Your theme may have some file called template-hooks.php or similar where you can find the existing hooks which you will need to remove. It looks like you are using a commercial theme and www.ads-software.com forum members don’t have access to commercial code.

    More here:
    https://www.ads-software.com/support/topic/move-category-description-to-the-bottom/

    If the standard hooks work for you, great. If not some PHP skills or a developer may be needed. You can post a job:
    https://jobs.wordpress.net/

    Thread Starter Cat

    (@catscholz74)

    thanks, @lorro! I posted in the thread you mentioned.

    Cheers!
    -Cat

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change order of content displayed on product category page’ is closed to new replies.