Wordpress Gallery not respecting 'link to media file'

resolved (13 posts) (3 voices)

  1. Gorm
    Member

    Hello I have set up a portfolio page, and inserted a wordpress gallery with link to media file in the gallery settings.

    But it is not respecting this, and instead links to media page for an image, you can see it here:

    http://www.capitalhouseprojects.com/portfolio/church-farm-lane/gallery/sample-page/

    I was hoping it would load in a pop up.

    Maybe I am doing something wrong?

    Thanks

    Posted 4 years ago #
  2. Elliott
    Support

    Hello Gorm,

    I checked your link but don't see any gallery.

    Check out our fancy_images shortcode, http://mysitemyway.com/docs/index.php/Fancy_Images.

    Posted 4 years ago #
  3. Gorm
    Member

    Thanks Elliot, you must have looked as I was tinkering with that page: Please try now: http://www.capitalhouseprojects.com/portfolio/church-farm-lane/gallery/sample-page/

    With fancy_images, how do you integrate with wordpress gallery? Or do you have to upload all the images individually?

    Thanks

    Posted 4 years ago #
  4. Elliott
    Support

    You would have to upload each individually.

    For those add this in Dashboard -> your theme -> General Settings -> Custom Javascript,

    jQuery(document).ready(function(){
    jQuery('.gallery-icon a').prettyPhoto();
    });
    Posted 4 years ago #
  5. Gorm
    Member

    Thanks for looking into this. Almost there, however I get this error javascript alert: Image cannot be loaded. Make sure the path is correct and image exist.

    Any ideas?

    Posted 4 years ago #
  6. Elliott
    Support

    Try adding a link = "file" to the shortcode,

    [gallery link="file"]

    Posted 4 years ago #
  7. Gorm
    Member

    Forgot - to say thanks for this, was me forgetting to put link="file" - a wordpress thing, and not an issue with the theme. Cheers

    Posted 4 years ago #
  8. jonsvarn
    Member

    Hi i had the same problem as mentioned above (the wp gallery would not link to media file)

    I fixed the problem by adding the custom javascript you posted above but when viewing each image inside the popup there is no "previous" & "next" buttons.

    Is there any other script i need to add or something else i could do to enable "previous" & "next" buttons ?

    Thanks in advance

    Posted 4 years ago #
  9. Elliott
    Support

    Try setting the rel attribute of each image to this,

    prettyPhoto[my_gallery]

    Posted 4 years ago #
  10. jonsvarn
    Member

    I cannot understand what you actually mean by setting the "rel attibute for each image" and i think that by taking a separate action for each individual photo would not be so handy when dealing with a large gallery with lots of images.

    To make it more clear ...the issue i am actually having is when clicking on an image from the gallery, the popup (lightbox) appears normally but if want to go to the next image of the gallery i need to click outside the popup and then click again and again on each individual image. Normally in that kind of lightbox there is a "next" button or even a play/pause button.

    Posted 4 years ago #
  11. Elliott
    Support

    When you upload the image to your media library you can set the rel attribute.

    Posted 4 years ago #
  12. jonsvarn
    Member

    Sorry but i tried that and there are no "prev" and "next" buttons. I only get the alt text content on the top of the image as a title. Is there any other way to have just by default these buttons? As i said before it would be also very diffictult to add this attribute (if it worked) to galleries with 100+ images. In several other themes i use when i add a gallery i can just view all the photos of the gallery by clicking just the "next" button.

    (i attached two screenshots - screenshot 1 is what i get and screenshot 2 is what i want)

    Thanks in advance for your help and hope to find an effective solution.

    Attachments

    1. screenshot2.jpg (99.4 KB, 1 downloads) 4 years old
    2. screenshot1.jpg (21.2 KB, 1 downloads) 4 years old
    Posted 4 years ago #
  13. Elliott
    Support

    As far as I know using rel tags is required to make it into a gallery. See here for the prettyPhoto documentation, http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation.

    Perhaps there is a plugin out there you can use for this.

    Posted 4 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme