Changing / Hiding the "Select Page" Centered Menu Text

Written by Dan Mossop

The Divi Theme comes with a range of header formats, including two "centered" layouts. When viewing these centered layouts on mobiles, the header menu is shown along with the "Select Page" text, e.g.

If you'd like to remove or change this text, there are a couple of options.

Hiding the "Select Page" text with CSS

If you want to remove the "Select Page" text entirely, you can do so by adding CSS to Divi, as follows:

.select_page { visibility: hidden; }

Changing the "Select Page" using PHP

If you're comfortable adding PHP to Divi, you can replace the "Select Page" text with text of your choosing with the following code snippet:

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 'Pick a Section'; }
	return $text;
}

Removing / Changing the "Select Page" Text with Divi Booster

Divi Booster now includes an option to change the "Select Page" text. The option can be found on the Divi Booster settings page under Header > Mobile Header > Change centered menu "Select Page" text (Divi Booster v2.7.0) or under Header > Main Header > Change centered menu "Select Page" text (Divi Booster v2.2.9 – v2.6.9):

Simply check the box, enter your new text (or leave blank to get rid of the text) and save.

The result will be a menu which looks something like this:

Check out Divi Booster

Effortlessly customize your Divi site with Divi Booster. Unlock enhanced features like changing the "Select Page" text directly from the settings, saving you time and making your site look clean and professional.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

16 Comments

  1. Is there a way you know of to make the mobile menu show a certain page first? I want to show a Purchase page and then of course you would see the other menu items if you touch it, but instead of the hamburger menu, one that looks more like the search bar, but with a specific page showing first on the menu?

    Thank you.

    Lynn

    Reply
    • Hi Lynn, so am I right in thinking what you want is something akin to the first image in this page, but with the "Select Page" text replaced by a link to your Purchase page? If so, can you let me know which header layout you're currently using (default, centered, etc)? But if I've misunderstood, please let me know! Thanks.

      Reply
  2. Hi there, it worked perfectly for me. I just want to know how can hide the gray field and center the menu?

    Thanks in advance.

    Reply
  3. Hi! This works great! However I would like to get rid of the darker field in front of the menu all together, so only the hamburger is showing, nothing next to it. Does anyone know how to do this?

    Thanks A lot!

    // Sessan

    Reply
  4. Didn't work for me…

    Reply
    • Hey Yoli, if you are able to send me a link to the site you're working on I'll see if I can spot the problem. Thanks.

      Reply
  5. where do you add the CSS?

    Reply
  6. can you have the "select page" change to the name of the page itself, like "About" if they are on that page?

    Reply
    • Hi Sadie, you should be able to do it with this modified version of the code above:

      add_filter('gettext', 'change_select_page_text', 20, 3);
      function change_select_page_text($text, $orig, $domain ) {
      	if ($domain == 'Divi' and $orig == 'Select Page') { 
      		$title = get_the_title();
      		$title = empty($title)?'Select Page':$title;
      		return $title;
      	}
      	return $text;
      }
      

      It will use the page / post title, or if this is empty display the default 'Select Page' text.

      Reply
  7. Removing / Changing the “Select Page” Text with Divi Booster

    Does not work with Divi Version: 3.0.69
    and the latest version of DiviBooster

    Reply
    • Hi Mike, I just checked this on my test site and it still seems to be working. Is there any chance you're able to send me a link to your site so that I can take a look?

      Reply
  8. Great job !

    Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest Posts

Enable Swipe Navigation in the Divi Gallery Lightbox

Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...

Disable Slide-In Animation for Divi Gallery Grid Images

Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...

Control Image Count Display in Divi Gallery Lightbox

Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...

Hide Gallery Image Titles in the Divi Lightbox Overlay

Displaying image titles in the lightbox overlay of the Divi Gallery module can sometimes be distracting or unnecessary, depending on your website’s design and user experience goals. Hiding these titles creates a cleaner and more focused viewing experience for visitors...

Customize Divi Gallery Module Pagination with Custom Text and Icons

Enhancing the navigation experience in your Divi Gallery module can make your galleries more intuitive and visually appealing for visitors. By replacing the default previous and next pagination links with your own text and icons, you can better align the gallery...

Random Posts