• Home
  • Add-ons
  • Templates
  • Docs
    • Get Started
    • Quick Setup
    • Style Editor
    • Resources
    • Updates
    • Framework
    • Tutorials
  • Blog
     
  • Home
  • Add-ons
  • Templates
  • Docs
    • Get Started
    • Quick Setup
    • Style Editor
    • Resources
    • Updates
    • Framework
    • Tutorials
  • Blog
  1. Docs
  2. Framework

How to add Custom CSS

Matrix Framework

There are different ways to add custom CSS to the Matrix Framework, and this page will guide you on the best approach to do so while keeping your theme clean and well-organized.

To access the main CSS file, go to Design > Custom Template > CSS tab in your admin panel.

This file contains the core layout styles for theme variables such as colors, typography, layout, and navigation. These should not be modified directly.

In the same section, you can add your own CSS code specific to a particular website. While it’s acceptable to add your custom code at the top of this file if you know where it is, it’s not recommended. Future Matrix Framework updates may overwrite this file, causing your custom code to be lost. Therefore, this method is not considered best practice.

If you really need to keep your own code in this area, the best approach is to add it within the Template Tweaks section. This allows you to safely include custom CSS and also override some of the default template styles without affecting the main framework files.


/* -------------------------------------------------------------------------------- / [3] LAYOUT / -------------------------------------------------------------------------------- */
/*** template tweaks ***/ #cc-inner #hs-container .j-formnew input[type='submit'], #cc-inner #hs-container input.submitUser, #cc-inner .hs-button, #cc-inner .j-calltoaction-link { padding: 18px 50px!important; }
...

CSS Components

The Matrix Framework includes several CSS components — a total of 7 CSS files — located in your file directory. These files are imported directly into the main index.html file using the @import rule (found under Templates > Custom Template > HTML tab).

These component files contain essential CSS for custom elements, utility classes, and core libraries, and should never be modified.


<style type="text/css"> /*<![CDATA[*/ @import url("04-custom-widgets.css"); @import url("05-helper-classes.css"); @import url("06-media-queries.css"); @import url("07-admin-menu.css"); @import url("08-libraries.css"); @import url("09-updates.css"); @import url("10-style-editor.css"); /*]]>*/ </style>

Some users choose to add a separate CSS file in this section, which is perfectly fine. However, this approach can be inconvenient, as you’ll need to edit the CSS and re-upload the file every time you make a change.


<style type="text/css"> /*<![CDATA[*/ @import url("04-custom-widgets.css"); @import url("05-helper-classes.css"); @import url("06-media-queries.css"); @import url("07-admin-menu.css"); @import url("08-libraries.css"); @import url("09-updates.css"); @import url("10-style-editor.css");
@import url("your-custom-styles.css"); /*]]>*/ </style>

Recommended Approach

There are several ways to use your own custom CSS in the Matrix Framework. The recommended approach is to keep your setup simple and organized, ensuring that your customizations remain intact even after template updates.

 

 

1. Style Editor – Custom CSS

The Style Editor in the Matrix Framework includes a dedicated field for custom CSS.

If you scroll down within the editor, you’ll find this Custom CSS field, where you can write your own styles directly or paste them from another source.

This is a convenient way to manage your CSS, especially if your custom styles are minimal or limited in size.

 

doc-img

2. Head Section

This is the classic way to include custom styles or external scripts.

In Admin Mode, go to Settings > Edit Head, and add your custom code here. For example:

 

doc-img


<style type="text/css"> /*<![CDATA[*/ #cc-inner .custom-class { color:#fff; } /*]]>*/ </style>

It’s not always necessary to use !important to override the default template styles. In most cases, simply adding #cc-inner at the beginning of your CSS selector is enough to ensure your custom styles take precedence.

3. Widget / HTML

If you need to add custom styles for widgets that appear only on specific pages, you can use the Widget / HTML module added to the content section.

This allows you to include inline CSS that applies only to that page or widget, keeping your styles localized and avoiding unnecessary global overrides.

 

doc-img


<style type="text/css"> /*<![CDATA[*/ #cc-inner .custom-class { color:#fff; } /*]]>*/ </style>
Get started
Matrix Themes


Stand out with professional Jimdo website

Premium 24/7 Support · Lifetime Updates




has-right-col-border

Products

  • Matrix Builder
  • Matrix Themes
  • Matrix Framework
  • Matrix Themes vs Framework
  • Pricing

Resources

  • Templates
  • Pre-made Templates
  • Add-ons
  • Marketplace
  • Feedback

Documentation

  • Get Started
  • Quick Setup
  • Style Editor
  • Tutorials
  • Updates

Quick links

  • Made with Matrix
  • Style Guide
  • Shortcodes
  • Jimdo Creator
  • Small Business websites

draggable-logo

Global colors
  bg-primary
  bg-primary-light
  bg-primary-dark
  bg-secondary
  bg-secondary-dark
Template colors
  body
  top-header
  top-header-inner
  header
  header-inner
  navigation-inner
  navigation color
  dropdown background color
  content
Footer Styles
  background
  text color
  link color
  horizontal line
Buttons
  style 1
  style 2
  style 3
  text color
Mobile navigation
  background color
  navigation color
Other elements
  social icons
  top header border
  header border
  nav inner border
Template configurations
 
has-right-nav has-sticky-logo g-font no-shopping-cart
 
Top header inner
 
 
 
Header inner
 
 
 
Navigation inner
 
 
 
Navigation styles
 
snip-nav --line01 is-uppercase size-13
 
Sub-menu (breadcrumbs) styles
 
size-15
 
Mobile Navigation styles
 
size-30
 
Content styles
 
form-white mid-round-btn
 
Footer styles
 
o-form color-white white-outline-btn mid-round-btn
 
Footer background image
 
 

 

Typography

Heading H1
weight-400
 
Heading H2
weight-400
 
Heading H3
weight-400
 
Buttons
weight-400
 
 
Advanced settings
 
Custom CSS

 

#cc-inner .my-class {

  color:#f0f0f0;

}

 


Note:
All changes made here will be applied to your entire website.
is-switcher

About | Privacy Policy | Cookie Policy | Sitemap
Created with Jimdo
Log in Log out | Edit
  • Get Started
  • Quick Setup
  • Style Editor
  • Resources
  • Updates
  • Framework
  • Tutorials
  • Scroll to top
Close