mobile version header

For the mobile version of my website, I want the header on the home page to be transparent but white on all the other pages. is that possible? I currently set it as transparent using the theme settings, but it made it transparent on all pages.

ngg.keyurmaru.com

Comments

  • Hi,
    Yes, that's possible.
    You have to create your own Custom Layout and attach it in your page options settings.

    Thanks
  • I've already attached one custom layout to my page which has a different header then the homepage. Is it possible to attach another layout to the same page for this issue?
  • You can apply only one custom layout per page.
    Of course, you can use the same layout on other pages, but it's not possible to attach two custom layouts on the same page.
    Thanks
  • Ok understood. So how can I accomplish my original question?

    For the mobile version of my website, I want the header on the home page to be transparent but white on all the other pages. is that possible? I currently set it as transparent using the theme settings, but it made it transparent on all pages.

    ngg.keyurmaru.com
  • Sure, paste this CSS in the Theme Options > Custom CSS & JS > CSS

    @media(max-width:784px){
    body:not(.home) #Top_bar{
    background:white !important;
    }
    }
    Thanks
  • perfect! and last question on mobile how can I make the nav bar fixed to the top? right now when you scroll theres a small transition then it becomes sticky. I want it to just be fixed at the top with no transition when you scroll, just like how it is on the desktop version.
  • Unfortunately, It cannot be overwritten with CSS.
    It's hard-coded in the theme files, so it cannot be disabled.

    If you have some other questions, feel free to ask.
    Thanms
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.