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

HomePage Forums Themes Support Freshio – Organic & Food Store WordPress Theme Remove “Download” woocomerce

Topic Resolution: Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4003
    BiotyOngles
    Support Expired

    Hello,
    how could i remove the “download” section in the home page ?

    i succeeded to delete it in the dashboard but not in main page on listview.

    thnaks

    #4018

    Hi there,

    About your issue, to remove it, please copy and paste code into file functions.php:

    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'); ?>">
    			<?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 (freshio_is_woocommerce_activated()): ?>
    				<li>
    					<a href="<?php echo esc_url(wc_get_page_permalink('myaccount')); ?>"
    					   title="<?php esc_html_e('Dashboard', 'freshio'); ?>"><?php esc_html_e('Dashboard', 'freshio'); ?></a>
    				</li>
    				<li>
    					<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>
    				</li>
    				<li>
    					<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>
    				</li>
    				<li>
    					<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>
    				</li>
    				<li>
    					<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>
    				</li>
    			<?php else: ?>
    				<li>
    					<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>
    				</li>
    			<?php endif; ?>
    			<li>
    				<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>
    			</li>
    		</ul>
    	<?php endif;
    
    	}

    then, remove this code:

    <li>
    					<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>
    				</li>

    save and recheck your site.

    #4064
    BiotyOngles
    Support Expired

    Thanks for your answer !
    i will try this as soon as possible and i will keep you in touch !

    best regards

    #4072
    BiotyOngles
    Support Expired

    it is good !
    thank you !

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

You must be logged in to reply to this topic.