Moving my header banner color towards the left

Solved

Moving my header banner color towards the left

BrickBuidz
Excursionist
40 0 5

Hi guys!  I need help with my website, so for all the website themes the banner is going across the entire website but is there a way I can move the banner to just the top left?

 

Here is my website:

https://31s9t78lrjydybk3-79949955347.shopifypreview.com

 

Heres How I want The Banner to Look Like:

BrickBuidz_0-1691801539578.png

 

I want the banner color to just go over the logo and thats it.

 

Any help would be greatly appreciated thanks!!

Accepted Solution (1)

PaulNewton
Shopify Partner
7192 635 1492

This is an accepted solution.

Roughly you'd remove/override the existing background colors; you'd also need to adjust any colors that were dependent on a contrasting background.

Then add custom css adding a psuedo element with the background color making a square of color then rotate it to get the slope then move it left/right up/down to get the alignment right.

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css 

Example css:

.header-wrapper.color-accent-1.gradient {
    background-color: initial;
}

.header-wrapper:before {
 content:" ";

 position: absolute;
 z-index: 0;
 top: -150px;
 left: -150px;
 transform: rotate(45deg);

 display: block;
 width: 300px;
 height: 300px;

 background-repeat: no-repeat;
 background-color: red;
}

.header__heading-link {
 left: -110px;
 position: relative;
}

 

If you need this customization fleshed out contact me for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Replies 2 (2)

PaulNewton
Shopify Partner
7192 635 1492

This is an accepted solution.

Roughly you'd remove/override the existing background colors; you'd also need to adjust any colors that were dependent on a contrasting background.

Then add custom css adding a psuedo element with the background color making a square of color then rotate it to get the slope then move it left/right up/down to get the alignment right.

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css 

Example css:

.header-wrapper.color-accent-1.gradient {
    background-color: initial;
}

.header-wrapper:before {
 content:" ";

 position: absolute;
 z-index: 0;
 top: -150px;
 left: -150px;
 transform: rotate(45deg);

 display: block;
 width: 300px;
 height: 300px;

 background-repeat: no-repeat;
 background-color: red;
}

.header__heading-link {
 left: -110px;
 position: relative;
}

 

If you need this customization fleshed out contact me for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


BrickBuidz
Excursionist
40 0 5

Thank you so much for the quick reply!! It added the sideways square but its red and overlapping the logo, can you please help me with this?

BrickBuidz_0-1691806652679.png