Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26822

    Dear, Support!

    I would like it if the my gallery launch with menu.
    I use “lightgallery” premium addon…

    I find this solution, but I do not know how to use it with WordPress plugin.

    For mine, one ready gallery must launch.

    The page
    Gallery id: 1

    Please help me fast! Thank you very much!

    #26823
    Bartosz
    Keymaster

    Hi,
    Never done that but I’d try it like that:

    1. Go to Lightgallery settings first and enable Hash option (last one at the bottom)
    2. I see you have a gallery images at the bottom, is that correct? Then click first gallery image and copy the url (the one you have in the browser – it’s a direct link to a gallery first image)
    3. Go to menu, create Custom link and put the copied url, give it a label (for e.g Gallery). Save
    4. On the frontend check if clicking gallery menu item opens a gallery.
    5. If it does, just hide the gallery images at the bottom (using CSS display: none parameter)

    Hope this helps.

    #26832

    That’s what I tried, but all “a tag” put to new gallery item.
    So this is not good.

    Maybe this is a solution?

    #26833
    Bartosz
    Keymaster

    Just checked, seems to be working fine if you add http://hotstone.alfawebdesign.hu/#lg=0&slide=1 link to it.

    There’s also empty link included in the gallery as #lg=0&slide=0 and it’s because of this:

    <a href="" title="" data-rl_title="" data-rl_caption="" data-rel="lightbox-gallery-1" data-sub-html="">Galéria</a>.

    #26837

    Ahh… Okey, now I understand!
    Hash options ad one link to gallery.

    Without page refres not working, but i added this script, and now good work.

    <script>
    	function refreshPage(){
    		window.location.reload();
    	} 
    </script>
    <a href="/#lg=0&slide=0" onClick="refreshPage()">
    	Galéria
    </a>

    Thanks for fast support!
    *5

    #52332
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.