• I’m having problem with inserted code, that wasn’t causing an error before

    This is the code:

    // Edit WooCommerce dropdown menu item of shop page//
    // Options: menu_order, popularity, rating, date, price, price-desc
     
    function my_woocommerce_catalog_orderby( $orderby ) {
        unset($orderby["price"]);
        unset($orderby["price-desc"]);
        return $orderby;
    }
    add_filter( "woocommerce_catalog_orderby", "my_woocommerce_catalog_orderby", 20 );

    It should remove sort by price from Woocommerce listing options.

    When I hover over the dropdown menu, at the top right on my site, it glitches.

    See it here: https://pixxsa.com/

  • The topic ‘Problem with inserted code, what wasn’t before’ is closed to new replies.