I am currently doing a web and the CMS
e-commerce
with which I am handling the content is Prestashop
but I have run into the following problem:
We have a menu: X 1 2 3 4
, where X
is the logo and the numbers are sections of the menu.
At the time of scrolling, I would like to change that logo and also when going to the top of the page that returns to the first logo.
I've been searching the web, how to add code to Prestashop
, but I do not recognize it or my code is wrong, or both. I tried exploring the JavaScript
that manages this property and I came up with this idea:
Menu: X 1 2 3 4
static, and when downloading hide the class that I have of the logo and show a background image, which would be the logo that I want to show when I scroll, but when using the method removeClass
nothing happens.