What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Change color of menu text only on main home page

Solved

Change color of menu text only on main home page

makersh
Tourist
7 1 1

Due to the video banner, I need the menu text in white. The issue is I only need this changed on the home page. The rest of the pages, such as About, Contact, should remain the original color.

 

The element I need to change is ".wbmenul1_link". The color to fff.

 

I found an article on applying changes to specific pages but I couldn't get it working. I believe the body class of this page is "gradient template-index", but I couldn't find an ID.

 

Can you kindly let me know how to go about this?

 

The website is https://makersharvest.com.au

Accepted Solution (1)

joeeverett
Shopify Partner
23 4 6

This is an accepted solution.

Hi @makersh

You can try this go to your header.liquid file and copy this line of code above the {% schema %} tag

 

 {% if request.page_type == "index" %}
       <style> 
       .wbmenul1_link{
         color:#fff;
        } 
        </style>
   {% endif %}

 

 

it should look like this

 

Screenshot 2022-05-31 at 23.19.50.png

 

and then save in the top right.

View solution in original post

Replies 2 (2)

joeeverett
Shopify Partner
23 4 6

This is an accepted solution.

Hi @makersh

You can try this go to your header.liquid file and copy this line of code above the {% schema %} tag

 

 {% if request.page_type == "index" %}
       <style> 
       .wbmenul1_link{
         color:#fff;
        } 
        </style>
   {% endif %}

 

 

it should look like this

 

Screenshot 2022-05-31 at 23.19.50.png

 

and then save in the top right.

makersh
Tourist
7 1 1

Thank you for your time Joe. This worked exactly as I needed