Hi, I’m using a gallery post on the site and it scrolls through a number of images – I know how to add description copy to the image so it appears at the bottom – BUT, how do I link the images to certain pages?
Naturally, the user will come onto the site, see these images scrolling through and want to click to find out more. I see that each image has an attachment page so I tried that route but still no luck. Please can you help.
Currently there is no option to link images in gallery post to a page, but you can link it to the gallery post itself. To do that, you can open up the content-gallery.php file in themes/dw-fixel folder, find the code below (around line 13):
and change it into this:
<a href="<?php the_permalink(); ?>" data-toggle="modal" data-post-id="<?php the_ID(); ?>" class="info">
Hope this helps!
Please login or Register to submit your answer