Skip to content

Instantly share code, notes, and snippets.

@dannydickson
Last active March 1, 2018 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannydickson/d38da15a5bfb88260a08f641a2ba7ac2 to your computer and use it in GitHub Desktop.
Save dannydickson/d38da15a5bfb88260a08f641a2ba7ac2 to your computer and use it in GitHub Desktop.
Update "Select Page" Text Divi Mobile Menu
<?php
/* Place the code below in your functions.php file. Do Not Include the opening PHP tag above. In the code, look for the "return" and change the word 'Menu' inside the quotation marks to what ever you want to show up in the mobile menu */
// Update "Select Page" Mobile Menu Text
add_filter('gettext', 'change_select_page_text', 20, 3);
function change_select_page_text($text, $orig, $domain ) {
if ($domain == 'Divi' and $orig == 'Select Page') { return 'Menu'; }
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment