Hi Team,
We are working on site initialiser with set of public pages in it, I want to apply theme-css client extension on all public pages. We have tried adding it in layout-set/public/metadata.json. But its not applied when I checked the site created using this site initialiser.
Hey Yogesh,
Did you try applying the Theme CSS Client Extension to a Master Page, and then using the Master Page template for all Site Pages?
This is how I would do this in the UI, so logically it should also be possible in a Site Initialiser.
Cheers,
Ben
Hmm, I just came across this Product Idea - looks like it might be a limitation at the moment. My suggestion would be to vote on the Product Idea so that it gains more visibility with our Product team.
Sorry @turnstok missed your messages, Yes we have tried to add in Master page but it was not reflecting theme-css in the pages. Yes it seems limitation at this moment.
Hello @yogesh.chandra
Regarding the application of theme CSS via the Site Initializer, it appears this is a known limitation of the current site initializer framework. Specifically, when a theme is built using front-end tokens.
The Site Initializer framework is continuously evolving based on community and enterprise feedback. If you are a Liferay Subscriber, I would recommend opening a formal support ticket to log this requirement, as user demand often drives the prioritization of these architectural improvements. Otherwise, for the time being, the manual application is the necessary workaround.
Thanks
Priyank Gajera