• Resolved shereew

    (@shereewalker)


    Hi there,

    The lightbox appears to be no longer working with WordPress 6.0

    I cannot see any console errors or entries in the php error logs

    You can see here
    [ redundant link removed ]
    The lightbox no longer works on the images

    PHP Version 7.4.30

    Any help would be appreciated.

    • This topic was modified 2 years, 5 months ago by shereew.
    • This topic was modified 2 years, 5 months ago by shereew.
    • This topic was modified 2 years, 4 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Could you tell me what kind of error you have in the PHP Error Logs? I have been testing the plugin with the latest versions of WordPress and also different version of PHP but I didn’t encounter any issue. Would love to know what’s going on so that I can fix it for you ??

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @shereewalker Do not use short links in these forums, that has been abused in the past and is expanded when found. I have expanded yours.

    Thread Starter shereew

    (@shereewalker)

    Hi Jan

    The issue I have with using full URL’s is that when someone googles that business name, this question will now pop up in Google search results. I have the exact same issue with Stack Overflow.

    I generally prefer if clients and general web users do not see search results related to site issues, though in this case it does not matter.

    In the future I will try emailing the URL to them or maybe even stop using business names in dev site URLS.

    I will keep this in mind in the future.

    Thanks
    SHeree

    • This reply was modified 2 years, 4 months ago by shereew.
    Thread Starter shereew

    (@shereewalker)

    Hi Jordy,

    I actually don’t get any php issues at all, which I know is not helpful sorry.

    It just doesn’t work anymore.

    Thanks
    Sheree

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The issue I have with using full URL’s is that when someone googles that business name, this question will now pop up in Google search results.

    Use think field and never use shortlinks on this site again. The link field cannot be seen by any search engine. It is only visible to logged in users.

    I moved your expanded link to the correct place and it will not be seen by a search engine.

    Thread Starter shereew

    (@shereewalker)

    Okay no problem.

    thanks for this

    Sheree

    Thread Starter shereew

    (@shereewalker)

    Hi @tigroumeow

    Unfortunately I have just had an email from another client saying the lightbox is not longer working for them either – but again I am getting no errors.

    Are you able to take a look – I am happy to purchase the pro version if this would allow me to have the extra support?

    Thanks
    Sheree

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Is it possible to see the website where it doesn’t work? Or have more information? The Lightbox works fine on the latest versions of everything (WordPress, PHP, etc), so I think you have a very specific issue but I am not sure what.

    Do you think you can replicate the issue on a fresh install of WP?

    Thread Starter shereew

    (@shereewalker)

    Hi Jordy

    Thanks for your message.

    the two domains are
    https://jacobitescotland.org/explore/castle-menzies/

    and

    https://dpyachting.com/yachts/princess-56-2017/

    For some reason this thread has been marked as resolved but unfortunately it’s not working on either.

    I’m not sure I could replicate the issue.

    For both sites it’s the latest WP and PHP Version 7.4.30

    I have tried adding all of these as selectors but the meow classes that trigger the lightbox just never get added to the images and I can’t work out why

    Yachting:

    .the-image, .the-image img, .the-image a, .preview-image-container, .preview-image-container img, .listing-preview-gallery

    Jacobite:

    .gallery, .gallery-image

    I disabled every plugin except the ones I had to have in order to display the images which are Advanced Custom fields, FacetWP and scroll triggered animations (I already tested scroll triggered animations by disabling the plugin and undoing the classes that initially hid the gallery items)

    The code that displays the gallery on the yachting site is

    <div class="preview-images-container">
                  
                               <?php $gallery_images = get_field( 'gallery' ); ?>
                                <?php if ( $gallery_images ) :  ?>
                                  <?php foreach ( $gallery_images as $gallery_image ): ?>
                                      <div id="preview-image-container">
                                        <div class="the-image">
                                            <a href="<?php echo esc_url( $gallery_image['url'] ); ?>">
                                                  <img src="<?php echo esc_url( $gallery_image['sizes']['medium'] ); ?>" alt="<?php echo esc_attr( $gallery_image['alt'] ); ?>" />
                                            </a>
                                        </div>
                                      </div>            
                                  <?php endforeach; ?>
                                <?php endif; ?> 
                                  
                        </div>

    And for the Jacobite website

    <?php if( get_field( 'gallery' ) ) :
    				$images = get_field( 'gallery' );
    				$size = 'full'; // (thumbnail, medium, large, full or custom size) ?>
    				<div class="gallery">
    					<?php foreach( $images as $image_id ): ?>
    						<div class="gallery-image">
    							<?php echo wp_get_attachment_image( $image_id, $size ); ?>
    						</div>
    					<?php endforeach; ?>
    				</div>
    			<?php endif; ?>

    If that is of any help

    Thanks again for your help

    • This reply was modified 2 years, 4 months ago by shereew.
    • This reply was modified 2 years, 4 months ago by shereew.

    Same for me.

    It only works for the first image on the post, but not for the rest.

    Here’s the link of the post, for example:

    https://elibaskin.com/hikes/%d7%90%d7%99%d7%a1%d7%9c%d7%a0%d7%93-hellismannaleid-laugavegur/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Lightbox no longer working with WordPress 6.0’ is closed to new replies.