Our brands

How to disable header scrolling when using mobile device like smartphone?

All QuestionsCategory: TechnicalHow to disable header scrolling when using mobile device like smartphone?
Avatarhallandellon asked 6 years ago

Because of small screen devices, when scroll header is activated, it is filling almost whole screen. How can I disable only on mobile devices?

0 Answers
Panda ThuanPanda Thuan Staff answered 6 years ago

Hello Mate,
 
Please tell me what the theme are you using?
To disable scroll header is activated on mobile. Please try to open the file “skin/frontend/ves theme package/default layout/javascript/common.js” then find code:
 

else if( $(“body”).hasClass(“keep-header”)){

 
Replace to:
 

else if( $(“body”).hasClass(“keep-header”) && !mobilecheck() ){

It will check if not mobile the scroll header will activated. Vice versa, it not activated.

Avatarhallandellon replied 6 years ago

I´m using Ves New Shopping theme. I did what you said and works perfectly. Thanks again for your quick support.

Do NOT follow this link or you will be banned from the site!