Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • woocommerce- remove orderby dropdown for products

    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.03k
    Comment on it

    Hello again,
    In this tutorial I will guide you to remove or edit the orderby dropdown for products, so if you have any such requirement follow the below code.

    If you want completely remove the drop down and ordering options, add below single line code to your functions.php file:

    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
    

    Here in above code, 10 is priority of the function, which is default priority, you can change it according to you.

    Else if you want to edit or change it to some other thing first find the file at the following location-

    /wp-content/plugins/woocommerce/template/loops/ordering.php
    

    After this copy the file you searched for and paste it to your theme folder

    /wp-content/themes/yourtheme/woocommerce/loops/ordering.php

    then edit it, and override the default drop down.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: