Is it possible to have a different colour navbar on just the home page?

Hi, is it possible to have a different colour navbar on just the home page? I’ve tried to add CSS to my site to do this, but nothing happens!

Here’s the CSS I’m using:

.page-id-4 .x-navbar {
	background-color: rgba(0,0,0,0.2) !important;
}

I’ll put the URL in a secure note as it’s on a temporary link at the minute.

Thanks!

Hello @core365,

Thanks for asking. :slight_smile:

You can add following CSS under X > Theme Options > CSS to change navbar background color on homepage:

.home .x-navbar {
    background-color: #ed3833 !important;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

That’s great, thanks! I really appreciate the video guides and links you’ve supplied too and I’ll definitely take a look at them as I prefer to try and do things myself without having to annoy yourselves!

Thanks!

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.