- This topic has 3 replies, 2 voices, and was last updated 8 years, 9 months ago by Theme Horse Support Team.
-
AuthorPosts
-
July 19, 2015 at 11:54 am #26489BelParticipant
Hi there,
I was wondering if it was possible to change the words ‘Navigation’ on the mobile theme version instead to something like menu…?
thanks!
July 20, 2015 at 5:42 am #26509Theme Horse Support TeamKeymasterHi 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!
July 20, 2015 at 10:38 am #26518BelParticipantgreat! thank you so much it worked 🙂
July 21, 2015 at 10:39 am #26559Theme Horse Support TeamKeymasterYou Welcome Bel
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.