Hi,
Yes, you can change the selector of that script to your desired needs.
$(‘a[href*=#]’) to $('.anchor')
Let us know,
Thanks, laranz.