Solved it. It was simply that the script to remove and add the class needed to go ahead of a few other scripts on the page.
↧
Solved it. It was simply that the script to remove and add the class needed to go ahead of a few other scripts on the page.