Skip to content

Instantly share code, notes, and snippets.

@akther80
Created January 10, 2019 06:10
Show Gist options
  • Save akther80/f99130831cf0f5983455f61749599b0a to your computer and use it in GitHub Desktop.
Save akther80/f99130831cf0f5983455f61749599b0a to your computer and use it in GitHub Desktop.
Electro v2 - Move category description below the content
add_action( 'init', 'ec_child_move_archive_desc_below_content' );
function ec_child_move_archive_desc_below_content() {
remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 91 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 91 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment