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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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
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
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.