Stacked Testimonial Slider Navigation Broken

I recently trimmed down a site I’m working on. While doing a final revision I realized the Stacked Testimonial Slider (from the Modern Sliders pack) navigation was broken: whenever I click on the previous or next button it does change the slide, however, it then navigates to a non-existent page at domain.com/next (or previous), which, of course, causes a 404 error. See Example 1 in secure note.
Upon inspection, I realized the div elements’ URLs were missing the hashtag before them

for the navigation, compared to another (working) implementation.
I proceeded to add the hashtag to both the “Prev” and “Next” URLs and that seemed to fix the problem. See Example 2.

However, trying to figure out what had happened, I restored a backup from a week ago, and the navigation seems to be working without the hashtags. See example 3.

Could you help me figure out what might be going on? I’d like to know if there might be other problems with the site that I might have overlooked that might be related to this.

Hello @Oriol,

Thank you for this very detailed post information. The correct hashtag for a href or link URL should be #previous and #next. Using #prev and #next would work as well.

Best Regards.

You can actually leave the link url blank, so long as the custom attributes data-x-slide-next="" and data-x-slide-prev="" are set.

Screenshot 2024-03-22 at 11.23.09

Then you don’t see domain.com/#next and domain.com/#prev appear in your browser url. Then I usually add a bit of CSS to make sure the hand pointer cursor appears on each next/prev links.

Screenshot 2024-03-22 at 11.23.17

Hope that helps.

1 Like

Hi @boomfly,

Thanks for your solution.

That worked perfectly, thanks!

1 Like

Always a pleasure, @Oriol.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.