Your account expired support, please renew to get your support.
Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4133
    w1nkey
    Support Expired

    Hi! 🙂
    Where can I change the user menu that appears when I hover over the user icon?

    2021-01-26-10-11-19

    #4143

    Hi,

    To change this menu

    Option 1: Use menu on Menu location.

    Step 1: Create new men for My account
    Step 2: Go to Menus -> Menu Locations -> My Account -> Select menu My account( step 1) https://prnt.sc/xn64ev

    Option 2: Edit menu default.

    Copy code into file functions.php ( child-theme) and edit them.

    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('downloads')); ?>" title="<?php esc_html_e('Downloads', 'poco'); ?>"><?php esc_html_e('Downloads', '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;
    
        }
    #4149
    w1nkey
    Support Expired

    Thanks!)

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

You must be logged in to reply to this topic.