July 20, 2015 at 5:42 am
#26509
Theme Horse Support Team
Keymaster
Hi Bel,
This feature is not available in our theme. It needs code customization. If you really wanna change the code then the file is inside theme folder (attitude )-> library -> structure -> functions -> functions.php on line no 247 to 259 you will see this below code
/**************************************************************************************/
add_filter( 'wp_nav_menu_items', 'attitude_nav_menu_alter', 10, 2 );
/**
* Add default navigation menu to nav menu
* Used while viewing on smaller screen
*/
if ( !function_exists('attitude_nav_menu_alter') ) {
function attitude_nav_menu_alter( $items, $args ) {
$items .= '<li class="default-menu"><a href="'.esc_url( home_url() ).'" title="Navigation">'.__( 'Navigation','attitude' ).'</a></li>';
return $items;
}
}
Replace above code with is below code
/**************************************************************************************/
add_filter( 'wp_nav_menu_items', 'attitude_nav_menu_alter', 10, 2 );
/**
* Add default navigation menu to nav menu
* Used while viewing on smaller screen
*/
if ( !function_exists('attitude_nav_menu_alter') ) {
function attitude_nav_menu_alter( $items, $args ) {
$items .= '<li class="default-menu"><a href="'.esc_url( home_url() ).'" title="Menu">'.__( 'Menu','attitude' ).'</a></li>';
return $items;
}
}
Remember one thing that each and every time you update to new version then the same things you need to do again and again. So better make a child theme and then customize the code so that your data will not be lost while updating to new version.
Thank you!