How to add custom CSS?
This doc is a guide on how to add the custom CSS to a Monk widget on your store. Please refer to the below mentioned steps-
Here's a quick video tutorial on adding custom CSS- https://www.loom.com/share/21881cf4e0c449809f51d6596d58492d
- Step 1: Go to Online Store --> Themes --> Click on Customize next to the theme that you want to make the changes to
- Step 2: Click on theme settings that's on the left hand side of your screen
- Step 3: Scroll down to find 'Custom CSS' and then copy paste the code in the box provided
Conventions:
- All the Monk CSS classes will have a prefix of mr
<!-- sample monk element -->
<div class="mr-button"></button>
- Always use class or id selector to apply custom CSS. Don’t use :first-child, :last-child, element selectors (span div) or any other selectors.
- Each funnel & it's design template is made up of well defined class names for each element (with mr- prefix) and also some auto generated names. Please use the class names with mr prefix for applying CSS.
- Every widget has a div with a unique id. If a style has to be applied only specific to a particular widget then this id can be used.
If you have any other questions or queries please reach out to us via chat support or write to us at support@monkcommerce.com
Updated on: 29/07/2024