Hello @boulassel,
It seems like the issue is due to the jQuery version, WordPress Twenty Twenty theme is using.
As previous themes, had no such bugs if you would have used same above code.
I have surfed a lot to overcome this with New WordPress Twenty Twenty theme, so far I am not able to find anything that would help me.
I would be really glad to know if you have it solved by now and can help me with this.
Thank You,
Divya Shah
-
This reply was modified 5 years ago by divy39993.