• Resolved anseistudio

    (@anseistudio)


    Hi,

    I’d like to hide/remove the ‘Download’ option on the sidebar, because my store sell physical stuff (And therefore have no need on the download section)

    Can someone please help me on how to do this? Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @anseistudio

    You can do this via multiple method

    Method 1
    You will need this slightly customized this code snippet:

    function update_my_account_menu_items( $items ) {
        unset($items['downloads']);
        return $items;
    }
    add_filter( 'woocommerce_account_menu_items', 'update_my_account_menu_items' );

    This code goes on functions.php file of your active child theme.

    Method 2

    Go to WooCommerce > Settings > advanced and remove an entry for Downloads in the account endpoints section, leave it blank and the download menu will not be visible anymore.

    Method 3
    Hide download option via CSS,

    li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
        display: none;
    }

    This code goes on style.css file of your active child theme.

    • This reply was modified 3 years, 1 month ago by Group Of Oceninfo. Reason: forget to add code :p

    @princebhalani143

    Thanks for helping out.

    @anseistudio Kindly try the steps above to see if it addresses your concern.

    If it doesn’t, can you share a screenshot of the error via https://imgbb.com or https://snipboard.io?

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved – we’ll be here if and/or when you are ready to continue.

    Thread Starter anseistudio

    (@anseistudio)

    Ok, method 2 works. Thankyou guyss

    Glad to hear that the second method worked for you. Thanks for letting us know.

    Please feel free to open a new topic if you have any other questions.

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Download Button on Profile Page’ is closed to new replies.