Your account expired support, please renew to get your support.
HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Login Menu
Topic Resolution: Resolved
- This topic has 2 replies, 2 voices, and was last updated 3 years, 2 months ago by w1nkey.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
January 26, 2021 at 2:12 pm #4133w1nkeySupport ExpiredJanuary 26, 2021 at 2:41 pm #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/xn64evOption 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; }
January 26, 2021 at 4:12 pm #4149w1nkeySupport ExpiredThanks!)
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.