VamTam Auto-Repair Theme Mobile Sticky header

Vamtam Auto-Repair Theme Sticky Header In Mobile Problem

Auto Repair theme is one of the most popular theme from VamTam themes. It does offer sticky header for desktop but it is not offered for mobile.Majority of web developers and business owners wish to keep the sticky header in mobile, but it is a problem. This option is turned off by the theme developers for mobile devices.It is turned off because the animation is not well supported by the majority of the mobile devices (as per VamTam Theme’s Forum).But nowdays, we know mobiles support all types of animations and execute JS without any special efforts.There was no proper solution available for this problem over the internet. We have spent plenty of time in looking for a solution and found one.

Enable sticky header on mobile for Auto Repair VamTam Theme:-

You will see plenty of classes used in your theme’s header but choosing the right one is important.Below in this post, we have used the exact classes and code that you need to update to enable sticky header in mobile.

  1. Class “.fixed-header-box” is used by the theme for your mobile header. Make sure to check it once with “Inspect Element” in your browser.
  2. If it’s the same class, then write the following CSS, if it’s different then write the name of your class replacing “.fixed-header-box”.NOTE:- Here we are using “!important; ” to override the default properties of the class.
.fixed-header-box{ position:fixed !important; 

After adding above CSS, check header on your phone you may have visibility issue with hamburger menu getting hidden or going behind the website elements.

To resolve this issue, there is a simple solution available by using the following CSS updates :-

  1. VamTam AutoRepair theme uses the following CSS code to control the visibility of the mobile menu “#mp-pusher nav#mp-menu a#mp-menu-trigger“.
  2. Override the CSS property, visibility: visible !important; as belowBy default, it is “inherit” which causes problem with the sticky header.
#mp-pusher nav#mp-menu a#mp-menu-trigger{ top: 25px !important; visibility: visible !important; }

NOTE:- Margin top could be different for your website. It should be updated as per your website header.BINGO! Your header should be sticky now.

Found this post helpful, please like and share. If you have any questions, we’ll be happy to solve it.

1 Comment

Leave a Reply

Your email address will not be published. Required fields are makes.

Sahibjot Singh

Sahibjot Singh

Hi, I am Sahibjot Singh. A web designer/developer and email marketing automation specialist from last 7 years. While working all these years, i had been running into many problems for which it was really hard for me to find solutions.

But I was able to find solutions with my technical skills and taking help from different sources.

I realised there are plenty of other business owners and non-technical people who need solutions to the same problem. That is why I post various solutions that are not currently available online.

Share:

Facebook
LinkedIn
Twitter
Skype
WhatsApp

Most Popular

Follow Us

Get The Latest Updates

Subscribe To Our Weekly Newsletter

No spam, notifications only about new blog posts, articles ,products andupdates.

Categories

Doing the best for email marketing? Still your domain can be black listed if you hit a spam trap, once.


Verify your contacts for FREE and make sure there are no spam traps or invalid emails. 

Read More

Related Posts

― Receive the latest articles
Subscribe To Our Newsletter

Get notified about new articles