Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1149500

    Hi, I installed Woocommerce and the plugin YITH WooCommerce Ajax Product Filter and i have a problem. I’d like to remove the standard WooCommerce Sort By on shop page. I read the article https://support.yithemes.com/hc/en-us/articles/115001418628 , i insert that code in my functions.php but it doesn’t work.Do you know why?

    The same problem is when i try to insert on other code in the same file
    function wc_remove_related_products( $args ) {
    return array();
    }
    add_filter(‘woocommerce_related_products_args’,’wc_remove_related_products’, 10);

    Thanks
    Arianna

    #1149752

    Hey frago20,

    The code is for the related products, and you talk about filters. Which one do you want to remove?
    https://cl.ly/e769b993c542 These ones?

    Please have a look here
    https://kriesi.at/support/topic/remove-the-sort-by-on-shop-page-woocommerce/

    Best regards,
    Victoria

    #1152835

    Hi,
    thanks a lot!

    I also ask you how i can increase the font of the menù? I know how to increase the font of the text in the paragraph but not in the menu.

    I also tell you the problem with the page below. Why when I go to that page i view the form with all option showed? I’d like to attach a photo to explain you the problem.

    Thanks
    Arianna

    #1152875

    Hi Arianna,

    You can upload screenshots to a service like Dropbox or http://imgur.com and give us the links here.
    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .av_seperator_small_border .av-main-nav > li > a > .avia-menu-text {
      font-size: 16px;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1153315
    This reply has been marked as private.
    #1153537

    Hi,
    Thanks for the screenshots, but I tested your page with Chrome, Firefox, Edge & IE11 on Windows 10 and didn’t see your error, only like the correct image. I didn’t recognize your browser from the screenshot, is it Safari? Perhaps an old version, I don’t see the 3 top left-hand dots for window management?

    Best regards,
    Mike

    #1154041
    This reply has been marked as private.
    #1154285

    Hi,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function remove_woo_relate_products(){  
    	remove_action( 'woocommerce_after_single_product_summary', 'avia_woocommerce_output_related_products', 20);
    }
    add_action('init', 'remove_woo_relate_products', 10);

    Then clear your browser cache and check.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.