How to make settings different for each specific page

The default color of my header text is white, but I want to make the text color black when entering another category, and I also want to remove the hover function. What should I do ?

lgbtqstyles.com // mohtse

Hi @swoo0105

You can try using below code by following these steps:

  1. Go to Online Store → Theme → Edit code https://prnt.sc/fJOF9RnL7Rp5

  2. Open your theme.liquid theme file

  3. Paste the below code before https://prnt.sc/iv9k22viBihv

{% unless template == 'index' %}
  
{% endunless %}

Best regards,
GemPages Support Team

Hi @swoo0105

This is Victor from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the

{% if template.name =='collections' or handle contains 'contact' %}

{% endif %}

This code will make your homepage is old style but once you go on to another category, the text and color will be black

Hope this can help you solve the issue

Best regards,

Victor | PageFly