Jump to content

Slideshow does not load images in Chrome


Sabine
 Share

Recommended Posts

Hi everybody!

I am cluesless - maybe anybody of the experts have a hint for me?

I have a beautiful image gallery that does what I expected in Firefox and Chrome on Android. However, in Chrome Version 81.0.4044.129 on WIndows 8 it does unfortunately not show my images.
 

<div uk-slideshow="animation: fade; ratio: 4:3">

        <div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1">

            <ul class="uk-slideshow-items">
            
                <?php foreach($page->slideshow as $bild): ?>
                <li>
                    <div>
                        <img src="<?php echo $bild->httpUrl; ?>">
                    </div>
                </li>
                <?php endforeach; ?>
            </ul>

            <a class="uk-position-center-left uk-position-small uk-hidden-hover" href="#" uk-slidenav-previous uk-slideshow-item="previous"></a>
            <a class="uk-position-center-right uk-position-small uk-hidden-hover" href="#" uk-slidenav-next uk-slideshow-item="next"></a>

        </div>

        <ul class="uk-slideshow-nav uk-dotnav uk-flex-center uk-margin"></ul>

    </div>

 

Link to comment
Share on other sites

Kind of doubt it’s a difference in how Chrome and the other browsers interpret the HTML ? It’s probably a CSS or JS thing. Have you been looking at the developer tools? Maybe there is something helpful in the javascript console. It’s going to be difficult to debug from afar. Is the site online anywhere?

  • Like 2
Link to comment
Share on other sites

Ah, I think the missing certificate is actually the reason Chrome refuses to load the images, because they’re coming from a different domain (www. vs. no www.). This happens in Firefox as well. If you use a relative address like you did in the sidebar, it should work.

Edit: so the problem was in fact visible in your initial code snippet. My apologies ?

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...