Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Header layout – Top head line: has Duplicate menu (sign out, my account)
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Header layout – Top head line: has Duplicate menu (sign out, my account)
- This topic has 1 reply, 2 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Neighborhood
-
October 29, 2016 at 8:54 am #299455
Dear Supporter
I choose Header option No1. and using the top head line.
As you can see my attachment, there are 2 duplicate menu: one is sign out the other one is my accountSO I want to change the menu (No.1 position) – right side of logo
that can be just URL link, if click that one go to other page is enough
Can you tell me how can i change those 2 url?
Thank in advance
Attachments:
You must be logged in to view attached files.October 31, 2016 at 4:34 pm #299620To change the menu on the logo right side please install and activate the supplied child theme, inside the child theme
functions.php
file paste this. Search below for the Login / My Account text and you can update the URL./* AUX LINKS ================================================== */ if (!function_exists('sf_aux_links')) { function sf_aux_links($position, $alt_version = FALSE) { // VARIABLES $login_url = wp_login_url(); $logout_url = wp_logout_url( home_url() ); $myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' ); if ( $myaccount_page_id ) { $logout_url = wp_logout_url( get_permalink( $myaccount_page_id ) ); $login_url = get_permalink( $myaccount_page_id ); if ( get_option( 'woocommerce_force_ssl_checkout' ) == 'yes' ) { $logout_url = str_replace( 'http:', 'https:', $logout_url ); $login_url = str_replace( 'http:', 'https:', $login_url ); } } $options = get_option('sf_neighborhood_options'); $show_sub = $options['show_sub']; $show_translation = $options['show_translation']; $sub_code = $options['sub_code']; $show_account = $options['show_account']; $tb_search_text = __($options['tb_search_text'], "swiftframework"); $aux_links_output = $ss_enable = ""; if (isset($options['ss_enable'])) { $ss_enable = $options['ss_enable']; } else { $ss_enable = true; } // LINKS + SEARCH OUTPUT $aux_links_output .= '<nav class="std-menu '.$position.'">'. "\n"; $aux_links_output .= '<ul class="menu">'. "\n"; if ($show_sub) { $aux_links_output .= '<li class="parent"><a href="#">'. __("Subscribe", "swiftframework") .'</a>'. "\n"; $aux_links_output .= '<ul class="sub-menu">'. "\n"; $aux_links_output .= '<li><div id="header-subscribe" class="clearfix">'. "\n"; $aux_links_output .= do_shortcode($sub_code) . "\n"; $aux_links_output .= '</div></li>'. "\n"; $aux_links_output .= '</ul>'. "\n"; $aux_links_output .= '</li>'. "\n"; } if ($show_translation) { $aux_links_output .= '<li class="parent aux-languages"><a href="#">'. __("Language", "swiftframework") .'</a>'. "\n"; $aux_links_output .= '<ul id="header-languages" class="header-languages sub-menu">'. "\n"; if (function_exists( 'language_flags' )) { $aux_links_output .= language_flags(); } $aux_links_output .= '</ul>'. "\n"; $aux_links_output .= '</li>'. "\n"; } if ($show_account) { if (is_user_logged_in()) { $aux_links_output .= '<li><a href="'.wp_logout_url(home_url()).'">'. __("Sign Out", "swiftframework") .'</a></li>'. "\n"; if ( $myaccount_page_id ) { $aux_links_output .= '<li><a href="'.get_permalink( $myaccount_page_id ).'" class="admin-link">'. __("My Account", "swiftframework") .'</a>'. "\n"; } else { $aux_links_output .= '<li><a href="'.get_admin_url().'" class="admin-link">'. __("My Account", "swiftframework") .'</a>'. "\n"; } } else { $aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'</a>'. "\n"; } } if (($position == "header-menu" && !$alt_version) && $ss_enable) { $aux_links_output .= '<li><a class="swift-search-link" href="#"><i class="fa-search-plus"></i><span>'.do_shortcode($tb_search_text).'</span></a></li>'. "\n"; } $aux_links_output .= '</ul>'. "\n"; $aux_links_output .= '</nav>'. "\n"; // RETURN return $aux_links_output; } }
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.