Title: Elementor Pro Image Gallery
Last modified: October 15, 2021

---

# Elementor Pro Image Gallery

 *  [jladkins0824](https://wordpress.org/support/users/jladkins0824/)
 * (@jladkins0824)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/elementor-pro-image-gallery/)
 * I am using the Elementor Image Gallery Pro. I cannot find a way to make link 
   the images to a pdf file (which is in my media library). I have tried the below
   code which someone else suggested, but it does not work. I have tried everything.
   Any help would be appreciated.
 *     ```
       <style>.e-gallery-item{cursor: pointer;} </style>
   
       <script>
       document.addEventListener('DOMContentLoaded', function () {
   
       var filteredImages = document.querySelectorAll('.e-gallery-item');
   
       //Edit the links HERE
       var links = [
       'https://lattatudes.com/wp-content/uploads/2021/10/Echostar.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/Housing.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/8177_CS_JetPort.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/schoolSystem.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/1CFOProject.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/SupplyChains.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/SarbanesOxleyCompliance.pdf/',
       'https://lattatudes.com/wp-content/uploads/2021/09/GTSI_Corp_Brochure.pdf/',
       ];
   
       var _loope = function _loope(i) {
       filteredImages[i].addEventListener('click', function () {
       location = links[i];
       });
       };
   
       for (var i = 0; i < filteredImages.length; i++) {
       _loope(i);
       }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Felementor-pro-image-gallery%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Elementor Pro Image Gallery’ is closed to new replies.

 * ![](https://ps.w.org/gallery-custom-links/assets/icon-256x256.png?rev=2588900)
 * [Gallery Custom Links](https://wordpress.org/plugins/gallery-custom-links/)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-custom-links/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-custom-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-custom-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-custom-links/reviews/)

## Tags

 * [Elementor plugin](https://wordpress.org/support/topic-tag/elementor-plugin/)

 * 0 replies
 * 1 participant
 * Last reply from: [jladkins0824](https://wordpress.org/support/users/jladkins0824/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/elementor-pro-image-gallery/)
 * Status: not resolved