Jump to content

Recommended Posts

Posted

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>

 

Posted

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
Posted

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
Posted
1 hour ago, lokomotivan said:

Try to url instead of httpurl


 <img src="<?php echo $bild->httpUrl; ?>">
to
 <img src="<?php echo $bild->url; ?>">

 

Thank you so much, it worked!!!

  • Like 2
Posted
6 minutes ago, Sabine said:

Thank you so much, it worked!!!

This is the relative URL that @Jan Romero was referring to here:

4 hours ago, Jan Romero said:

If you use a relative address like you did in the sidebar, it should work.

?

Welcome to the forums @Sabine

 

  • Like 2

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
×
×
  • Create New...