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 nowadays, 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 below. By 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.

One Response

Leave a Reply

Your email address will not be published. Required fields are marked *

Sahibjot Singh

Sahibjot Singh

Hey there! I'm Sahibjot Singh, and I've been on an exciting journey as a Web Designer/Developer and Email Automation expert for the past 12 years. It's been a fantastic ride filled with new challenges, and I've learned how to overcome various issues along the way.

One thing that's always been a part of my journey is the need to research and gather different puzzle pieces, using my coding knowledge to piece together solutions for a wide range of problems.

But here's the thing: I've realized that there are many business entrepreneurs and non-technical folks out there who don't have coding skills but often find themselves in similar situations.

So, what makes Unbouncehacks/Unbouncetips special? Well, it's not just a collection of scattered information. I've put together complete end-to-end solutions for the very problems I've encountered and that you might face in the future.

Plus, I keep this website updated with fresh tips and suggestions that have helped me excel in design and email marketing over the years. So, you're in for a treat with a treasure trove of knowledge! 🚀

Share:

Facebook
LinkedIn
Twitter
Skype
WhatsApp

Most Popular

Follow Us

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. 

― Receive the latest articles
Subscribe To Our Newsletter

Get notified about new articles