Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #389730

    Hi,

    I want to add a unique link to each image in the Gallery I have created from Media Elements.
    But when I add an url to Gallery Link URL it still show the image file name when I click on the image.

    What shall I do`?

    Thanks
    Charlotte

    #390252

    Hi charlotteraboff!

    Are you using the WordPress default gallery shortcode? If so then open up /enfold/js/avia.js and find line 847.

    if(!title) title = item.el.find('img').attr('title');
    

    And add this beneath it.

    if(!title) title = item.el.parent().next('.wp-caption-text').html();
    

    That will have the images display the “caption” you have written for each image.

    If that’s not what your trying to do then send us a link to your page so we can get a better idea.

    Cheers!
    Elliott

    #390274

    Hi,

    thanks for your reply.

    No, I mean that I want to be able to add a unique link on each image in the Gallery next to the Hotel Search box
    http://www.santamonicahotelbooking.com/santa-monica/
    I am using the Avia Layout builder and drag the Gallery from the Media Element.

    Another thing – I have a fast connection but those 6 images in the Gallery loads really slow.

    Charlotte

    #390462

    Hey!

    There currently is not any option for that. What you could do is right click your page and view the source and copy all of the HTML you see and then paste it inside a codeblock element and change the links manually.

    Before you do that though make sure to edit the gallery shortcode and set the “Use lightbox” option to “No, open the images in the browser window”.

    Regards,
    Elliott

    #390568

    Aha.. ok, thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Link on image in Gallery’ is closed to new replies.