How to mitigate CSS character limitation under rich text? Shopify CSS

I want to add media query under CSS of rich text. but I can add till 500 character. Is there any way to add more characters? Please help.

Hi @Arya10 Speak in concrete terms do you mean your trying to use a custom CSS setting?

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css

This limit is not changeable and is there for a reason.

If you have this much CSS you should either drastically optimize your CSS,

or move it to a global theme setting for CSS

, or customize the themes main css file

, or add your own custom css file.

If you need a custom.css CSS file customization setup for your theme then contact me by mail for services.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact info in signature.

Hello @Arya10 :waving_hand:

If you want to add long CSS code, you can go to your main CSS file (base.css, custom.css, theme.css or variantions) and at it there.

Hi. @PaulNewton

I want to add more lines or character in CSS under rich text section. Please refer the attached file.

For rich text which file I need to choose?

You can add to any of the above CSS files in your theme.