🎁 Get Up To 70% Off and a Free Prize During Divi Black Friday Sale! Get Divi

How to Remove Links on Portfolio Module in Divi Theme

Blog, Divi Tutorial | 0 comments

In this article I will share how to disable links or remove links in the Portfolio module. The Portfolio module displays a list of Projects on your website.

However a lot of people only want to showcase the images in the Portfolio module without having the images link to the individual project page. In this article we will disable the links on the images with a little bit of CSS Code.

The code below will work on both the standard Portfolio module and the Filterable Portfolio module. After adding the code below the images in the portfolio module will no longer link to their individual pages.

Add CSS Class to Disable Links

The first step is to add a custom CSS Class to the Portfolio module. Open the Portfolio Settings > Advanced > CSS Class and add lwp-disable-link.

If you are not sure where to add the CSS Class then please have a look at the screenshot below.

CSS Class Portfolio module disable link

We add a custom css class to module so that our code does affect any other modules on the website.

Add Custom CSS Code to Remove Links

Go to your WordPress Dashboard > Divi > Theme Options > Custom CSS and then add the following code to disable links on the images.

.lwp-disable-link div:not(.et_pb_portfolio_filters) a {
    pointer-events: none;
    cursor: default;
    display: inline-block;
}

Here is a screenshot of the place where you have to add the CSS Code.

Custom CSS Portfolio module disable links

That’s it. Once you have added the CSS Code and the CSS Class to the Portfolio module the images in the portfolio module should no longer link to their projects. Clicking on them will not do any thing.

Here are some recent tutorials from our blog that you can read next.

Leave a comment below if you have any questions. Don’t forget to subscribe to the Newsletter to receive the latest tutorials in your inbox.

About the Author

The author of learnhowwp.com is a WordPress expert with over a decade of experience, specializing in Divi. Since 2014, they have built numerous WordPress sites and developed 8 Divi plugins with over 30,000 active installations. A former support team member at Elegant Themes, they launched learnhowwp.com in 2020 to share their in-depth knowledge of Divi. Now home to over 65+ articles dedicated to Divi tutorials and insights

0 Comments

Submit a Comment

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

Our Plugins Are Already Being Used On 30,000+ Amazing Websites.

We offer a 30 Day Money Back Guarantee on all plugins, so joining is Risk-Free!