smooth scrolling

Permalink Browser Info Environment
Hi,

im using an image slider that uses <a href="#myCarousel123"> or <a href="#myCarousel456"> for scrolling images (Bootstrap)

the smooth scrolling js in function.js affects all <a href="#... links
Is it possible to exclude the <a href="#myCarousel*"> in javascript?

Regards

Torsten

Type: Discussion
Status: New
tsilbermann
View Replies:
c5mix replied on at Permalink Reply
c5mix
Look for this line in the theme's functions.js file (located at packages/theme_clearview/themes/clearview/js/functions.js):
$('a[href*=#]').click(function() {

And try replacing it with this and see if that works:
$('a[href*=#]').not('a[href^=#myCarousel]').click(function() {

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.