Tagged: product category
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?
Hey BonAnnee,
Maybe this guide will help you out? https://www.businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/
Best regards,
Rikard
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