Expand my Community achievements bar.

SOLVED

Is there a way to override sitewide CSS in the UI without editing files?

Avatar

Level 1

I know this may not be best practice but there is a business case I have which requires being able to give content authors the ability to override sitewide styles.  They don't have access to the file system.  Similar to how some themes in Wordpress have a form field in the theme editor that allows overriding theme styles.  Does this capability exist in AEM?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hello,

I don't think this is available OOTB, but it should be quite simple to do. For example, you can create a site property custom_css and make sure to inject it into the HTML code.

You can override existing CSS using !important, but there might be better ways to do it if you ask a frontend expert.

 

Good luck,

Daniel

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

Hello,

I don't think this is available OOTB, but it should be quite simple to do. For example, you can create a site property custom_css and make sure to inject it into the HTML code.

You can override existing CSS using !important, but there might be better ways to do it if you ask a frontend expert.

 

Good luck,

Daniel

Avatar

Community Advisor

Please check if this helps https://experienceleague.adobe.com/en/docs/experience-manager-65/content/sites/authoring/siteandpage... The custom styles which you need will have to be developed or if they already exist then its just enabling them in the style system and then essentially authors can change it from the UI. 
Hope this helps.