New Landing How can we help? Themeforest Theme Support Dante How to remove "Related Products" in Dante?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #123876
    ronin
    Member
    Post count: 282

    Hi,

    I just need to remove the related products section from the single product page – could I have the css code for that please?

    cheers, Kurt

    #123891
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add this code to your child theme functions.php file.

    <?php
    /*
    * wc_remove_related_products
    *
    * Clear the query arguments for related products so none show.
    * 
    */
    function wc_remove_related_products( $args ) {
    return array();
    }
    add_filter('woocommerce_related_products_args','wc_remove_related_products', 10); 
    ?>

    Thanks
    Mohammad

    #123933
    ronin
    Member
    Post count: 282

    Great – works – thanks!

    #123937
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #124810
    sittingprettyclothing
    Member
    Post count: 123

    Hi Mohammad,

    I try to do it in Neighborhood but it don’t seem to work. Not sure if it’s because of me or if this solution is only working in Dante. Thanks for letting me know,
    G

    #124814
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    What’s your link?

    – Kyle

    #124861
    sittingprettyclothing
    Member
    Post count: 123
    This reply has been marked as private.
    #124971
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check. You inserted code at /neighborhood-child/woocommerce/functions.php that was wrong. I created a functions.php at /neighborhood-child/ and insert same code here.
    Thanks
    Mohammad

    #124976
    sittingprettyclothing
    Member
    Post count: 123

    I just had a look, it seems to have worked perfectly! Thanks so much Mohammad. Have a great day

    #124993
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, thanks Mohammad

    – Kyle

    #125684
    ronin
    Member
    Post count: 282

    On a similar topic, how would we remove the Woocommerce help bar from the “My Account” page?

    cheers, Kurt

    #125688
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .help-bar{display:none !important;}

    Thanks
    Mohammad

    #125689
    ronin
    Member
    Post count: 282

    Thanks very much mate.

    cheers, Kurt

    #125690
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.