Divi tip: How to Remove the pop-up link to the image in the galleries


The Divi theme’s gallery module is very useful, and by default when you click on each image it opens in a nice pop-up light box effect, but it’s not always what you need.

Sometimes you will only want to use the module to display images, but without an automatic link to the image.

If this is your case it has an easy solution, you just need to add this little code in the additional CSS section of the WordPress customizer (Appearance -> Customize):

/* Remove image links from Divi gallery */
.et_pb_gallery_image a {
pointer-events: none;
cursor: default;}Code language: CSS (css)

Save the changes and now your image gallery will be displayed as before, but without any link.

If you want to customize its look you can do it already in the design settings of the gallery module.

Read this post in Spanish: Truco Divi: Cómo desactivar el enlace a la imagen en las galerías

How useful was this post?

Click on a smiley to rate it!

Average rating 3 / 5. Vote count: 6

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

Leave a Comment

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

Scroll to Top