Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add "MENU" wording to mobile navigation
- This topic has 11 replies, 2 voices, and was last updated 5 years, 3 months ago by nthdegreemd.
-
AuthorPosts
-
December 28, 2018 at 3:36 pm #225283nthdegreemdMember
I am dealing with a lot of older, non-tech savvy people... and I am wondering if there's an easy way to add the word "MENU" above the menu icon on responsive view.
I'm using the Interior theme.
Thanks in advance for any guidance you can provide.
http://thatgrabbarguy.com/staging/December 28, 2018 at 10:11 pm #225298Victor FontModerator1. Comment out this line in functions.php:
wp_localize_script( 'interior-responsive-menu', 'InteriorL10n', $output );
2. Add this immediately after the commented out line:
wp_localize_script( 'interior-responsive-menu', 'genesis_responsive_menu', interior_responsive_menu_settings() );
3. Add this after the closing bracket for the function interior_enqueue_scripts_styles():
function interior_responsive_menu_settings() { $settings = array( 'mainMenu' => __( 'Menu', 'interior' ), 'menuIconClass' => 'dashicons-before dashicons-menu', 'subMenu' => __( 'Submenu', 'interior' ), 'subMenuIconClass' => 'dashicons-before dashicons-arrow-down-alt2', 'menuClasses' => array( 'combine' => array( '.nav-primary', ), 'others' => array( '.nav-secondary' ), ), ); return $settings; }
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 10, 2019 at 2:27 pm #249347nthdegreemdMemberI'm sorry. I'm so stuck on step 3. I'm not sure where the closing brackets are. I'm not very familiar with PHP
January 10, 2019 at 3:25 pm #249790Victor FontModeratorJust replace the current function with the one I gave you above.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 12, 2019 at 12:36 pm #271680nthdegreemdMemberI have added this code successfully, but the word "MENU" is not appearing above the menu icon. What am I doing wrong?
January 13, 2019 at 10:30 am #282196Victor FontModeratorI can't see what you did so I can't tell you what you did wrong. I tested the code I gave you on the same theme on my development server so I know it works.
I'm not familiar with the performance plugin you're using. You may have to clear all of your caches before you can see changes.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 13, 2019 at 6:51 pm #286234nthdegreemdMemberI did clear my cache.
this is what it looks like in the editor. I did verify by the file manager it's in the functions.php
January 13, 2019 at 6:53 pm #286261nthdegreemdMemberJanuary 14, 2019 at 7:51 am #292466Victor FontModeratorYour screenshot links aren't working. Paste your functions.php file into https://pastebin.com/ and then provide the link to the code.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 14, 2019 at 7:19 pm #297890nthdegreemdMemberHere is the functions file
January 15, 2019 at 9:16 am #304480Victor FontModeratorYou didn't follow any of the instructions I gave you. All you did was paste the new code to the end of functions.php where it will never work.
I've redone your functions.php.
This will add the word "Menu" to the mobile. You'll have to figure out the CSS to place the word above the menu icon.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 15, 2019 at 1:20 pm #306367nthdegreemdMemberGod Bless you Victor, thank you for your patience and help! It worked!
-
AuthorPosts
- The topic ‘Add "MENU" wording to mobile navigation’ is closed to new replies.