Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dividezigns/9bbcdb47f1d1bac4b74a63f8f2245bbd to your computer and use it in GitHub Desktop.
Save dividezigns/9bbcdb47f1d1bac4b74a63f8f2245bbd to your computer and use it in GitHub Desktop.
This code will give you the ability to change Divi's default "Select Page" to whatever you want. Place this code in your functions.php file.
<?php
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