danighooli Posted August 22, 2020 Share Posted August 22, 2020 Hi all, I am using collections to categorize a ton of images since each photo needs to have its own link. links are now like this: example.com/collectionA/1 example.com/collectionA/2 example.com/collectionA/3 Is there a way I can have a button that changes the number? I want the visitor to be able to go to the next and previous image of the same collection without exiting to the main page. Link to comment Share on other sites More sharing options...
Makwana Prahlad Posted September 1, 2020 Share Posted September 1, 2020 try this: <div id="carouselExampleControls" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="..." alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="..." alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="..." alt="Third slide"> </div> </div> <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> Add bootstrap link Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now