• Hello good day.

    I am not an expert in English I hope I manage to understand and help .

    I am using the storefront thema I want to know how to delete the field where it goes ( default order , sort by popularity sort by developments etc. ) . queiro delete this field since only handling two products on my website .

    I appreciate your answers

    in spanish…
    hola buenos dias.

    no soy un experto en ingles espero me logren entender y ayudar.

    Estoy utilizando el thema storefront quiero saber como eliminar el campo donde va (orden predeterminado, ordenar por popularidad, ordenar por novedades etc.). queiro eliminar este campo ya que solo manejo dos productos en mi pagina.

    Agradezco sus respuestas

Viewing 8 replies - 1 through 8 (of 8 total)
  • Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey,

    To remove these you can add this code below to your child themes functions.php file.

    https://gist.github.com/stuartduff/971b022a0a04f1387a61

    This will remove the catalog ordering dropdown from above and below the products.

    I hope this helps.

    Thread Starter ferdinandbur

    (@ferdinandbur)

    Hi thanks for your reply
    I’ve used this code in funtions.php but I do not grabs as usual thema

    ese es el codigo

    <?php
    /**
    * storefront engine room
    *
    * @package storefront
    */

    /**
    * Initialize all the things.
    */

    require get_template_directory() . ‘/inc/init.php’;

    // remove default sorting dropdown

    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

    // remove default sorting dropdown in StoreFront Theme
    remove_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_catalog_ordering’, 20 );
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 20 );

    /**
    * Note: Do not add any custom code here. Please use a custom plugin so that your customizations aren’t lost during updates.
    * https://github.com/woothemes/theme-customisations
    */

    Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    That’s not the code I gave you which works for storefront.

    Thread Starter ferdinandbur

    (@ferdinandbur)

    thank you
    problem solved…

    Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Cool 😀

    Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    That great to hear you got it working now 🙂

    Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Thats great to hear it’s working for you now.

    Thread Starter ferdinandbur

    (@ferdinandbur)

    hello thank you very much for the help but I’ve been watching I have another question as I can remove the product search field .

    I get this in the top right answers … I appreciate

    hola muchas gracias por la ayuda pero he estado mirando tengo otra pregunta como puedo quitar el campo de buscar producto.

    este me sale en la parte superior derecha agradezco respuestas…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘remove computer products catalog’ is closed to new replies.