Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.