Place dropdown sorting BEFORE the main shop content (1 post)

  1. pansyflower
    Posted 3 years ago #

    I am stupid and can't use my own brains!
    I need to delete catalog sorting option in the end of shop page (in woo-pagination) and place it before products grid.

    I tried to use hooks - no success...

    remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
    remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
    remove_action( 'woocommerce_pagination', 'woocommerce_catalog_ordering', 20);
    add_action( 'woocommerce_before_main_content', 'woocommerce_catalog_ordering', 20 );

    Can anybody, please-please, please help...

Topic Closed

This topic has been closed to new replies.

About this Topic