Style Links to the Current Page in the Divi Link Module

Written by Dan Mossop

In this guide, we’ll look at how to give links to the current page a distinctive appearance while leaving links to other destinations unchanged. This can help visitors recognize where they are and scan your links more easily.

Style Current-Page Links in the Divi Link Module with the Current Page Styles Feature

The Current Page styles feature adds design controls to the Divi Link module, so you can customize the appearance of a link when its destination is the page being viewed. You can use the controls to adjust the current-page link’s text styling without changing the appearance of links to other destinations.

This method has been tested on, and is compatible with, Divi 5.

Get the Feature

The Current Page styles feature is provided by a dedicated plugin. If you haven’t installed it yet, you can download and install the plugin to add the controls used in this guide.

You can get the plugin here:

Add or edit a Link module

In the layout where you want the link to appear, add a Link module or open an existing one. Enter a suitable label, then expand the "Link" settings and set the URL to the current page’s own address.

Customize the current-page link style

Open the module’s "Design" tab and expand the "Current Page" section. Use its font controls to choose a text color, size, and weight that suit your design. For example, you could use a contrasting color, a larger text size, or a bolder weight to make the current-page link easier to spot. The example uses deep teal, 22px text, and bold weight; choose styles that work for your own layout.

Publish and check the result

Save or publish the page, then view it on the front end. Confirm that the link to the current page uses your selected style. If you added a link to another destination for comparison, check that it retains its usual appearance.

Extend your navigation styling

If you’re styling links as part of a wider navigation experience, these guides may also help:

Conclusion

You can now use the Current Page styles controls to distinguish links to the page a visitor is viewing, while keeping other links unchanged. If you’re trying to style another kind of link in Divi, feel free to get in touch or leave a comment.

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, 

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

0 Comments

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 *.

Compatible with

Divi 5