Search
Other Modals questions
Forum

Load CSS in modal

Jip Jonker's Avatar Jip Jonker
Hi! We have a modal that opens a form using an iframe. It opens a page / menu item of the website that displays a form (Convert Forms).

When the mdoal is opened the website (template) CSS is not loaded. Is there a way to:

1) Load the template website
2) OR load a different CSS file into the modal to style the content of the iframe (form)?

We can also add CSS to the form in the extension but I think I prefer to use a stylesheet.

Kind regards,
Jip
Jip Jonker's Avatar Jip Jonker
Thnaks! I do see 'Load scripts/styles' in the documentation but I am not sure how to use that... Can we add this to the modal tag?
Peter van Westen's Avatar Peter van Westen ADMIN
No, it's a global setting.
Please post a rating at the Joomla! Extensions Directory
Jip Jonker's Avatar Jip Jonker
I can not find a setting in the system plugin to add a stylesheet to the modal. Can you please tell me where to look?
Peter van Westen's Avatar Peter van Westen ADMIN
Ah, sorry, that option only shows and makes sense when the 'Open as Iframe' is off.

You ARE loading in an iframe. So then the component should decide what scripts and styles to load.
Please see:
docs3.regularlabs.com/modals/faqs/troubl...-the-correct-styling
Please post a rating at the Joomla! Extensions Directory
Jip Jonker's Avatar Jip Jonker
No worries, and thanks for this. This is what I was looking for.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription