How can I change a specific word's color in a text?

I would like to color my texts like this. And any idea on how to higlight it as well would be great!

Could you share your website url? @DylanRyan

https://e857dc-61.myshopify.com/

Hi @DylanRyan

The screenshot you provided, which page is it from? Can you send the URL?

Hello! @DylanRyan Please follow these steps to add this CSS code:

  1. Go to your Online Store
  2. Click on “Themes”
  3. Select “Edit code”
  4. Open your custom file
  5. Add the following code.
# {{ section.settings.title }}
  
{% schema %}
  {
    "name": "Custom heading",
    "settings": [
    {
        "type": "inline_richtext",
        "id": "title",
        "label": "Heading"
      }
    ]
  }
{% endschema %}

Add this CSS to your CSS file:

.hw-title {
    color: #000;
}
.hw-title strong {
    color: #0A90DD;
}

Go to your store’s theme editor, add text, and bold as much text as you want. See an example.

Output:

https://thepupjet.com/products/jet

Hi @DylanRyan

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > theme.css and paste this at the bottom of the file:
section#sf-custom-template--16213130969343__165667138816882ef8 .section__heading mark {
    background-color: #67b634!important;
    color: #fff;
}

I have a slick-theme.css and it didn’t work. I managed to do it with inspect but don’t know how to put it in actual codes

BY the custom file did you mean custom-liquid.liquid? I tried it there and it gave an error. I managed to d oit with inspect but don’t know how to implement in actual codes

@DylanRyan Please send me the entire code of the file in which you want to add this code.

Hello @DylanRyan ,

  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:

I tried adding it as a custom liquid it worked but don’t know how to to adjust the content alignment for the text and on dekstop it looks just like in mobile as a straight line.

tried adding it as a custom liquid and it worked but don’t know how to to adjust the content alignment for the text and on dekstop it looks just like in mobile as a straight line. You can see on my website

I learned how to align the text it works now I’ll take care of it from now on thanks for the help