Re: Change the Color of the Background on a Single Page

Solved

Change the Color of the Background on a Single Page

404virtues
Excursionist
22 0 4

Hi there,

I want to change the color of the background of a single page from White to an off-red (#F80000). With black heading, and white body font.

I know you can change scheme 1 as this changes the default colors everywhere, but it leaves a really ugly red flash when opening and transitioning to new pages.

Currently looks like this

404virtues_0-1720829303108.png


Want it to look like this

With a black heading, and white body font. (I did that in inspector, but I don't know how to get the code)

404virtues_1-1720829370832.png


website: https://404virtues.com/

Accepted Solution (1)

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @404virtues

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

 

{% assign full_url = request.host | append: request.path %}
{% if full_url contains 'about-us' %}
<style>
main#MainContent {
    background-color: #F80000 !important;
    color: #ffff !important;
}
</style>
{% endif %}

 

Here is result:

BSSCommerceHDL_0-1720831408978.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 2 (2)

BSSCommerce-HDL
Shopify Partner
2305 848 1065

This is an accepted solution.

Hi @404virtues

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

 

{% assign full_url = request.host | append: request.path %}
{% if full_url contains 'about-us' %}
<style>
main#MainContent {
    background-color: #F80000 !important;
    color: #ffff !important;
}
</style>
{% endif %}

 

Here is result:

BSSCommerceHDL_0-1720831408978.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

404virtues
Excursionist
22 0 4

Thank you so much.