Hey guys. Today we continue reviewing our “Handy Divi Snippets” and why they may come in handy one day. And if you have any handy code snippets you’d like to share, please leave a comment below.

Nesting Sub Menu Items on Mobile

If you ever worked on websites that have over 20 pages of content, you’ll see how long the mobile menu can get. These code snippets will nest all sub menu items on mobile and tablet. You can find the full tutorial on Elegant Themes blog.

Change “Select Page” Text on Mobile Menu

Depending on which header format you select, Divi will place the logo on top and display the string “Select Page” adjacent to a menu icon. This code will change “Select Page” to “Menu”. If “Menu” doesn’t suit your clients needs, simply replace the string ‘Menu” to whatever you like.

Remove “Projects” Custom Post Type

This may not come in handy all the time, but I find myself using it quite a bit. Especially when a client is not utilizing the Projects custom post type Divi ships with. This code will hide it, which helps de-clutter the back-end.

Enable SVG Upload

Not sure if you have noticed yet, but WordPress does not allow SVG files to upload by default. This code snippet will enable that option.

Unhide Secondary Menu on Mobile

If we were given a vote to select a section for Divi to improve, my vote is for the secondary menu header. Although I have mastered many different ways to style it using hacks and such, this could snippet will at least prevent the secondary menu from disappearing on tablet and mobile.

Control Opacity on Navigation Links

This might seem like a waste of a code, but I personally find it useful since the opacity setting for the navigation links isn’t obvious to me. This code snippet will target the classes that control the opacity (which defaults at 0.7) on the navigation links, which gives me the power to well, turn it off!

Navigation Link Hover Effect

Last but not least, this snippet will add a cool hover effect to the navigation links. To see it in action, visit this site and hover over the navigation links.

Although this is the last snippet currently, our Handy Divi Snippets page will be updated periodically so don’t forget to check back in. Till the next time Divi Designers!

Thanks for reading Handy Divi Snippets Overview 2. 😄

0 Comments

Subscribe!

Join our mailing list to receive tips, tricks, and new DD theme releases.

You have Successfully Subscribed!