Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1436495

    Hi!

    For SEO I would like to add extra text to my product category pages. Right now these texts (and the featured image) are above the products, but I would like to have the text and image below the products. Otherwise customers have to scroll down pretty far before they see products. What can I do to change this?

    #1436518

    Hey BonAnnee,

    Maybe this guide will help you out? https://www.businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/

    Best regards,
    Rikard

    #1436607

    Hi Rikard,

    Thank you for the guide! I added this as a snippet:

    add_action(‘woocommerce_archive_description’, ‘custom_archive_description’, 2 );
    function custom_archive_description(){
    if( is_product_category() ) :
    remove_action(‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 );
    add_action( ‘woocommerce_after_main_content’, ‘woocommerce_taxonomy_archive_description’, 5 );
    endif;
    }

    Unfortunately now the text appears both above the products as below the products, so it’s still not what it’s supposed to be.

    Best regards,
    Anne

    #1436628

    Hi,

    I’m not sure why that would be to be honest with you, maybe it would be better if you asked this question on a general Woo help forum instead?

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.