"Secondary" menu on Tablet
-
I’m using Secondary Menu for my Main Menu …. fine on PC but on the tablet the text “Secondary Menu” appears. I would prefer it to be “Main Menu” or just “Menu”. Can you advise what I need to change / where. Thanks
-
Hey there Technically Blonde,
How are you doing today?
Since the word is translatable the easiest way to change it would be to use translation files. You can find more information here:
http://codex.wordpress.org/Translating_WordPress
An alternative would be to edit it in theme files. The word is located in menu-secondary.php which is located in /wp-content/themes/cakifo/. I strongly suggest not editing the theme core files, you can copy the file into your child theme and make an edit there.
Word you’re looking for is located in line 21, it looks like this:
<?php _e( 'Secondary menu', 'cakifo' ); ?>Replace Secondary menu with the word of your choice. This should change the word on smaller resolutions 🙂
Hope this helps.
Best regards,
BojanHello Technically Blonde,
Bojan’s solution is correct.
Another solution is to use this in the child theme functions.php as you did with the Recent Posts heading.
/** * Changes the 'Secondary Menu' name * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function tb_cakifo_change_secondary_menu_title( $translated_text, $untranslated_text, $domain ) { if ( $untranslated_text === 'Secondary Menu' ) { return 'Main menu'; } return $translated_text; } add_filter('gettext', 'tb_cakifo_change_secondary_menu_title', 20, 3);In Cakifo 1.7, it will use the name of the menu instead of ‘Secondary’ menu 🙂
Thank you both, all resolved now.
Glad I could help 🙂
Cheers,
Bojan
The topic ‘"Secondary" menu on Tablet’ is closed to new replies.
