Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Change header background color


sarahrab

Question

Hello,

How can I get the header on the index (home) page to have a transparent background so the photos are layered behind the text, while maintaining the white background on the other four pages and the fixed position overall?

I'm using the Miller template, and the site is http://iggyrabinovich.com/

Thanks!

Link to post
  • Answers 30
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Hey @tuanphan I actually figured it out. This is what worked for me: <style>.header-announcement-bar-wrapper {  background-color: transparent !important  }.header-announcement-bar-wrapper.s

Add to Home > design > Custom CSS body:not(.homepage) .header-announcement-bar-wrapper.black, body:not(.homepage) header#header { background-color: black !important; }  

Posted Images

Recommended Posts

  • 0
On 1/7/2020 at 9:35 PM, Orazio said:

Hi

I have the Flatiron template and the code doesn't work for me. Do i need a different code?

Each template needs different code. Can you share link to your site?

Link to post
  • 0
12 hours ago, SashaLaff said:

Hi! I have the Hester template and I am need to keep the homepage transparent and keep the rest black!

Difficult to help without share link to your site

Link to post
  • 0
14 hours ago, aaron_leduc said:

I'm wondering if there's a way to do a solid colored header background using the Avenue template.  Site is www.mvcchurch.org.  Thanks in advance!

 

Add to Home > Design > Custom CSS

/* check by tuan */
/* fullwidth header - background color */
#canvas {
    max-width: 100% !important;
}
#header {
    margin: -85px -75px;
    padding: 10px 75px !important;
    background: gray;
}

replace gray with white

Link to post
  • 0

Thank you so much for your help! 

When I copied your code in, it didn't work as intended. I tweaked some of the parameters to get the logo and menu back to where they should be, but the header is limited to the box around the content.  Screenshots attached

Screen Shot 2020-04-01 at 9.28.47 AM.png

Screen Shot 2020-04-01 at 9.29.25 AM.png

Screen Shot 2020-04-01 at 9.31.38 AM.png

Edited by aaron_leduc
Added info
Link to post
  • 0

Your header isn't fullwidth, so it is difficult to set background color. See screenshot below

On 4/1/2020 at 10:15 PM, aaron_leduc said:

Thank you so much for your help! 

When I copied your code in, it didn't work as intended. I tweaked some of the parameters to get the logo and menu back to where they should be, but the header is limited to the box around the content.  Screenshots attached

image.thumb.png.3f5d2542421ef525e1053a1fd84a3a7a.png

Link to post
  • 0
22 hours ago, TheOutpost said:

Hi @tuanphan I am trying to make this change for the Haute template. I want the current transparent header to have a white background. Have tried a few snippets, but no luck so far. Is there an easy fix to make this adjustment? https://outpostlongwharf.squarespace.com/config/

 

Add to Page Settings > Advanced > Header

<style>
  header.Header.loaded {
    background: white !important;
}
  main#main {
    margin-top: 100px;
}
</style>

 

Link to post
  • 0

hi there! @tuanphan

you were so helpful for so many people, i was wondering if you could tell me the code or teach me how to change the color of the heading on my website so its different than the color that is behind the blog posts of my site. My website is pilotmagazine.uk . Thank you in advance! 

Link to post
  • 0
14 hours ago, Dagny said:

hi there! @tuanphan

you were so helpful for so many people, i was wondering if you could tell me the code or teach me how to change the color of the heading on my website so its different than the color that is behind the blog posts of my site. My website is pilotmagazine.uk . Thank you in advance! 

Which heading? Can you take a screenshot?

Link to post
  • 0
3 hours ago, Dagny said:

@tuanphan this header please, right now it is the same color as my background but I'd like it to be something different. Thanks!!

 

about, home, contact item?

Link to post
  • 0
17 hours ago, AtomicTangerine said:

@tuanphan Can you share the code on how to make the fixed header on the home page only transparent in 7.1? And then show as a color on scroll?

Thank you!

If you share link to your homepage, I can take a look

Link to post
  • 0
18 hours ago, tuanphan said:

If you share link to your homepage, I can take a look

Hey @tuanphan I actually figured it out. This is what worked for me:

<style>
.header-announcement-bar-wrapper {
  background-color: transparent !important
  }
.header-announcement-bar-wrapper.shrink {
    background-color: #533181!important;
  }
</style>

Link to post
  • 0

Hello @tuanphan

I am having the question about trying to get the header on the index (home) page to have a transparent background, while having a black background on the other pages. I am using a theme called Hester on 7.1.

Would really appreciate the support if you have the time!

Thank you!

Link to post
  • 1
23 minutes ago, Fredrik said:

Hello @tuanphan

I am having the question about trying to get the header on the index (home) page to have a transparent background, while having a black background on the other pages. I am using a theme called Hester on 7.1.

Would really appreciate the support if you have the time!

Thank you!

Can you share site url? We can check easier.

Link to post
  • 0
On 10/5/2020 at 5:18 PM, Fredrik said:

Hello again @tuanphan

The site URL is wrasse-pigeon-rejc.squarespace.com

Thank you!

Add to Home > design > Custom CSS

body:not(.homepage) .header-announcement-bar-wrapper.black, body:not(.homepage) header#header {
    background-color: black !important;
}

 

Link to post
  • 0
10 hours ago, SacredLab said:

@tuanphan I am wondering if you can help me change my navigation background colour to black.
I am using the fairfield theme.
The website is - cgrentals.com.au

You seem to be in the know!!

Change Header or Nav items?

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...