Your account expired support, please renew to get your support.

HomePage Forums Themes Support Poco – Fast Food Restaurant WordPress Theme Remove “Downloads” from account dropdown nav menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34116
    pizat2
    Support Expired

    I have removed the “Downloads” endpoint within Woocommerce but also want to remove it from the Account menu nav dropdown. Please let me know how I can do that. thank you.

    #34139

    Please copy this code to the file functions.php ( child-theme):

    function poco_account_dropdown() { ?>
            <?php if (has_nav_menu('my-account')) : ?>
                <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e('Dashboard', 'poco'); ?>">
                    <?php
                    wp_nav_menu(array(
                        'theme_location' => 'my-account',
                        'menu_class'     => 'account-links-menu',
                        'depth'          => 1,
                    ));
                    ?>
                </nav><!-- .social-navigation -->
            <?php else: ?>
                <ul class="account-dashboard">
    
                    <?php if (poco_is_woocommerce_activated()): ?>
                        <li>
                            <a href="<?php echo esc_url(wc_get_page_permalink('myaccount')); ?>" title="<?php esc_html_e('Dashboard', 'poco'); ?>"><?php esc_html_e('Dashboard', 'poco'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo esc_url(wc_get_account_endpoint_url('orders')); ?>" title="<?php esc_html_e('Orders', 'poco'); ?>"><?php esc_html_e('Orders', 'poco'); ?></a>
                        </li>
                       
                        <li>
                            <a href="<?php echo esc_url(wc_get_account_endpoint_url('edit-address')); ?>" title="<?php esc_html_e('Edit Address', 'poco'); ?>"><?php esc_html_e('Edit Address', 'poco'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo esc_url(wc_get_account_endpoint_url('edit-account')); ?>" title="<?php esc_html_e('Account Details', 'poco'); ?>"><?php esc_html_e('Account Details', 'poco'); ?></a>
                        </li>
                    <?php else: ?>
                        <li>
                            <a href="<?php echo esc_url(get_dashboard_url(get_current_user_id())); ?>" title="<?php esc_html_e('Dashboard', 'poco'); ?>"><?php esc_html_e('Dashboard', 'poco'); ?></a>
                        </li>
                    <?php endif; ?>
                    <li>
                        <a title="<?php esc_html_e('Log out', 'poco'); ?>" class="tips" href="<?php echo esc_url(wp_logout_url(home_url())); ?>"><?php esc_html_e('Log Out', 'poco'); ?></a>
                    </li>
                </ul>
            <?php endif;
    
        }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.