Re: Transparent Header Colorblock Theme

Solved

How can I get a transparent header only on the front page with Colorblock theme?

domo2
Explorer
78 0 19

Hello, 

 

I'm using the colorblock theme and want to hava a transparent header but only on the frontpage, not on any other pages like the productpage, etc

 

www.publicservice.store 

 

Thank you in advance!

Accepted Solutions (3)

PageFly-Lucas
Pathfinder
110 28 29

This is an accepted solution.

Hi @domo2 

This is Lucas from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: paste bellow code in tag </body> -> save.

PageFlyLucas_0-1685698959202.png

 

 

{% if template.name == 'index' %} 

<style>

header.header.header--middle-center.header--mobile-center.page-width.header--has-menu {

    background: transparent !important;

    position: absolute;

    width: 100%;

} 

</style> 

{% endif %}

 

Hope that my solution works for you.

Best regards,

Lucas| PageFly

banned

View solution in original post

PageFly-Lucas
Pathfinder
110 28 29

This is an accepted solution.

Please try again!!!

{% if template.name == 'index' %} 

<style>

header.header.header--middle-center.header--mobile-center.page-width.header--has-menu {

    background: transparent !important;

    position: absolute !important;

    width: 100% !important;

}

.list-menu__item, .header__icon .icon {

    color: white !important;

}

</style> 

{% endif %}

banned

View solution in original post

PageFly-Lucas
Pathfinder
110 28 29

This is an accepted solution.

Try again with these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: paste bellow code in tag </body> -> save.

PageFlyLucas_0-1685703334154.png

 

 

<style>

svg.modal__toggle-open.icon.icon-search {

    display: none !important;

}

</style>

banned

View solution in original post

Replies 23 (23)

ZestardTech
Shopify Partner
6142 1097 1473

Hello There,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find layout >theme.liquid and paste this at the bottom of the file:

{% if template.name == 'index' %}
<style>
.header-wrapper.color-background-2.gradient {
background-color: transparent;
}
</style>
{% endif %}

 

ZestardTech_0-1685698721355.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

PageFly-Lucas
Pathfinder
110 28 29

This is an accepted solution.

Hi @domo2 

This is Lucas from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: paste bellow code in tag </body> -> save.

PageFlyLucas_0-1685698959202.png

 

 

{% if template.name == 'index' %} 

<style>

header.header.header--middle-center.header--mobile-center.page-width.header--has-menu {

    background: transparent !important;

    position: absolute;

    width: 100%;

} 

</style> 

{% endif %}

 

Hope that my solution works for you.

Best regards,

Lucas| PageFly

banned
domo2
Explorer
78 0 19

Thank you very much, it worked!! 

Can you also help me to make the font only on this site on the transparent header in white?

PageFly-Lucas
Pathfinder
110 28 29

You can try again with this code:

{% if template.name == 'index' %} 

<style>

header.header.header--middle-center.header--mobile-center.page-width.header--has-menu {

    background: transparent !important;

    position: absolute;

    width: 100%;

}

.list-menu__item {

    color: white !important;

}

.header__icon .icon {

    color: white !important;

}

</style> 

{% endif %}

banned
domo2
Explorer
78 0 19

it worked, but now the whole menu is shifted to the left..

PageFly-Lucas
Pathfinder
110 28 29

This is an accepted solution.

Please try again!!!

{% if template.name == 'index' %} 

<style>

header.header.header--middle-center.header--mobile-center.page-width.header--has-menu {

    background: transparent !important;

    position: absolute !important;

    width: 100% !important;

}

.list-menu__item, .header__icon .icon {

    color: white !important;

}

</style> 

{% endif %}

banned
domo2
Explorer
78 0 19

it worked!! I appreciate you!! 

Last question: How do I remove icons from the header? I dont want the searchbar in my header.

Also instead pf the cart symbol i want the word CART.

PageFly-Lucas
Pathfinder
110 28 29

This code to delete icon search:
summary.header__icon.header__icon--search.header__icon--summary.link.focus-inset.modal__toggle {
display: none !important;
}

Regarding the issue of changing the cart icon to the text "cart" we can't intervene at the moment. You can contact the Theme so they can assist you in this matter.

banned
domo2
Explorer
78 0 19

Where do I insert that code?

PageFly-Lucas
Pathfinder
110 28 29

You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file -> Save

summary.header__icon.header__icon--search.header__icon--summary.link.focus-inset.modal__toggle {
display: none !important;
}

banned
domo2
Explorer
78 0 19

Doesn't work unfortunately 

oscprofessional
Shopify Partner
16372 2440 3187

Hello @domo2 

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

.modal__toggle-open {
    display: none;
}

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
domo2
Explorer
78 0 19

Unfortunately that doesnt work either

PageFly-Lucas
Pathfinder
110 28 29

This is an accepted solution.

Try again with these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: paste bellow code in tag </body> -> save.

PageFlyLucas_0-1685703334154.png

 

 

<style>

svg.modal__toggle-open.icon.icon-search {

    display: none !important;

}

</style>

banned
domo2
Explorer
78 0 19

Man Lucas you goated fr fr thank you!!

PageFly-Lucas
Pathfinder
110 28 29

You are welcome @domo2 😊

banned
domo2
Explorer
78 0 19

Hey, do you know how I change the font of the shop guidelines at the bottom of my footer? Thanks

domo2
Explorer
78 0 19

So when i view the page on my laptop or the window on my monitor is not full screen it's full width. 

But on full screen on my monitor it is shifted to the left again.. 

oscprofessional
Shopify Partner
16372 2440 3187

Hello @domo2 

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

 

.header__menu-item {
    color: #fff !important;
}
.header__icon {
    color: #fff !important;;
}

 

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
domo2
Explorer
78 0 19

worked aswell, but also the whole menu is shifted to the left..

 

oscprofessional
Shopify Partner
16372 2440 3187

Hello @domo2 

Do you want to center? 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
domo2
Explorer
78 0 19

not centered, full width

oscprofessional
Shopify Partner
16372 2440 3187

Hello @domo2 

You can try this code: it will be helpful to you

Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.

.gradient {
    background: transparent !important;
}

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...