Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move category description to bottom of page on Wordpress

I really need help to move the category description to the bottom of the category page between the pagination and the footer?

I have absolutely no idea which file to look for...

like image 249
doob Avatar asked Feb 28 '14 20:02

doob


People also ask

How do I move a category in WordPress?

Upon activation, simply head over to Posts » Taxonomy Order page to rearrange your WordPress category order. The plugin will simply list all your categories on that page, and you can manually drag and drop to rearrange category order. Simply click on a category and move it up or down.

How do I show category description in WordPress?

First, you need to head over to the Posts » Categories page. If you are creating a new category, then you can simply enter the category name and description here and then click on the 'Add new category' button.


1 Answers

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 );

you can also change the layout by adding this function also and change the echo code.

function woocommerce_taxonomy_archive_description() {
  if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) == 0 ) {
    $description = wpautop( do_shortcode( term_description() ) );
    if ( $description ) {
      echo '<div class="term-description">' . $description . '</div>';
    }
  }
}
like image 117
backups Avatar answered Oct 11 '22 14:10

backups