Skip to main content
Known Participant
June 3, 2021
Question

Slideshow HTML website click and next

  • June 3, 2021
  • 2 replies
  • 1813 views

Hello, 

My personal website always worked that way that when you click on a picture it jumped to the next; like a slideshow. However, since a few weeks it doesn’t work that way any longer and all images popped up at the same time instead. I've adjusted it right now so you can at least scroll down, but my knowledge in HTML is very outdated unfortunately.  Does anyone you’ve got any idea what goes wrong initally and how to fix it? 
Any help is appreciated.

Thanks!
Y

 

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    June 3, 2021

    1. jQuery Cycle is outdated.

    2. You never should have referenced the script on GitHub because that's not a recognized CDN. 

    3. Rebuild your slideshow with jQuery Cycle 2.  Download scripts directly from the source and upload them to your server.  See link below.

    https://jquery.malsup.com/cycle2/

     

    Nancy O'Shea— Product User & Community Expert
    Yaël5E15Author
    Known Participant
    June 3, 2021

    Thank you. That sounds pretty far from my bed. I need to dig into this! Y

     

    Yaël5E15Author
    Known Participant
    June 7, 2021
    quote

     

    1. The portrait / standing images are too big on the page. They don't fit in one window like the squared ones are. I don't like it that you've got to scroll to see an image. It needs to be visible at one page without scrolling (does that make sense?) 

     

    Well you have a problem there because the images you are refering to are tall and will only fit into the browsers window depth IF the user has their browser window set beyond the depth of the images themselves, otherwise the user WILL need to scroll vertically to see some of the image.

     

    You can attempt to negate the problem by setting the width of ALL the images to a smaller width, this obviously means the depth of the images will be smaller and so have more chance of fitting into the browser window depth without having to scroll.

     

    You can do this by changing the number of columns the carousel width takes up (see the line of code below, in red. You can experiment with the number of columns occupied by the carousel on different devices)

     

    <div class="row mt-5">
    <div class="col-9 col-sm-7 col-md-4 mx-auto">

     

     

    quote

     

    2. Can I enlarge the invisible boxes of the 'previous' and 'next' button till they are both covering half of the page? So when you click on the right side, you go next, and when you click on the left side, you go back.

    Is that possible? And if so, how?

     

    I would highly recommend you re-instate the carousel arrow icons as per Bens code NOT your code.  Your attempt to position the 'previous/next' text to be clear of the images has resulted in the text not being centered vertcially.

     

    To position the arrows outside of the images you need to overide the default classes. Include the below css in your custom css styles. This MUST come AFTER the link to the Bootstrap default css file

     

    .carousel-control-next,
    .carousel-control-prev {
    filter: invert(100%);
    }
    .carousel-control-next {
    right: -75px;
    }
    .carousel-control-prev {
    left: -75px;
    }

     

     

    Using the arrows rather than the text will give you more space on smartphones for the image, also arrow icons will provide clear guidance to the user that they can go backwards and forwards instead of assuming they will click about all over the place to find out how to move through the carousel, which is highly annoying.

     

     

     

     


    Hi,


    Thanks for your feedback! The first thing with the rows and columns is all clear. I will resize the images with the same height as well so it doesn't go up and down continuously. 
    I want to change the arrow part now, but I don't get it back the way Ben sent it to me. Plus, where do I need to paste that code of yours with -75 etc.? 

    I'm ok with arrows, as long as they are very small; like the font size at the top. Can you send me the code from what to place after the carousel with images so I don't remove things that shouldn't be removed? That would be a great help.


    Thanks again!
    Y


    Thanks for your advice!

    Community Expert
    June 3, 2021

    It appears your slideshow script was deleted from the server. But it appears to be from a server different than your own so it's possible you may need to find a replacement if the script you previously used is no longer being hosted.