HomePage Forums Themes Support Freshio – Organic & Food Store WordPress Theme Remove option from account dropdown.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #7276

    Hi, I would like to remove ‘Downloads’ from the account dropdown.

    Please, explain how


    Hi there,

    About this issue, please copy and paste code into file functions.php ( child-theme)

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

You must be logged in to reply to this topic.