How do I change the color of the headers in Webflow CMS articles separate from the body text using custom CSS?

TL;DR
  • Access Webflow Designer, navigate to a CMS Template page, and identify header classes by clicking on header elements.
  • Add custom CSS to Page Settings under "Custom Code" to change header colors, then save and publish changes.

To change the color of the headers in Webflow CMS articles separately from the body text using custom CSS, follow these steps:

1. Access the Webflow Designer

  • Open your Webflow project and go to the Designer section.
  • Navigate to a CMS Template page where you want the header color change to appear.

2. Identify Header Classes

  • Click on the header elements (e.g., H1, H2, H3) within your CMS item to check their classes.
  • Note the class names you're currently using for these headers.

3. Add Custom Code

  • Go to the Page Settings for your CMS Template page.
  • Scroll down to the "Custom Code" section where you can add "Inside </head> tag" code.

4. Insert Custom CSS

  • Enter your custom CSS to target the header classes. For example:

  ```css

  <style>

  .your-header-class {

    color: #FF5733; / Replace with your desired color code /

  }

  </style>

  ```

  • Replace .your-header-class with the actual class names for your headers.

5. Publish Your Changes

  • Save the changes after entering the CSS.
  • Publish your site to see the changes live.

Summary

By following the above steps, you can add custom CSS to change the color of the headers in Webflow CMS articles. Ensure to identify the header classes correctly and insert the CSS within the Page Settings to see the changes take effect.

Rate this answer

Other Webflow Questions