Change the “Select Page” text in Mobile Menu

Last modified Jun 19, 2020
Difficulty Beginner
Language CSS

 

If you set your Divi Menu centered, you will see on your Mobile by default “Select Page” before your menu bar. To replace “Select Page”  with you custom text, use the code below, just replace the text you want to display!

If you are looking a way to hide text, check out this snippet: Remove “Select Page” Text from Mobile Menu

 

 

Does this snippet (still) work?

Please let us know in the comments if everything worked as expected. We have tested this code with the Version: 4.4.8 of the Divi Theme.
If you think this code saved you time, we will be happy to receive a comment!

____

License: This snippet contains code from the Divi Theme, copyright https://elegantthemes.com, modified by Divi Space, June 19, 2020. Licensed under the GNU General Public License, no warranty; click here for details.

JavaScript

<script> 
  jQuery(document).ready(function() { 
    jQuery(".select_page").text("your text"); 
   }); 
</script>

 

Your Comments

Submit a Comment

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

Receive notifications about our new blog posts.

Before You Start

Build a Child Theme

Child themes are incredibly important for the overall look, feel, and navigation of your website, so we encourage you to take the time to get to know the content. This will help your web design and development processes tremendously. That’s why we’ve made it super easy to build a child theme for Divi or Extra in seconds!

Generate Child Theme

How to Add Java Script and jQuery to Divi

There are four ways you can add JavaScript or jQuery to a Divi website: use the code module, the Divi Theme Options console, enqueue scripts using the functions.php file, or using a plugin.

Read More

How to Add CSS to Divi

Divi users can choose between five different methods to add custom CSS to their websites. Read more about these various methods you can use to add custom CSS to your Divi theme, as well as better understand the pros and cons of each method.

Read More