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 28
  • 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

  • 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.

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

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

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

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

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

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>

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

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?

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

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
  • 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;
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

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...