Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Using Bootstrap with Liferay 7.1
Does anyone have a good tutorial on using Bootstrap modal's in Liferay 7.1? I actually went here and copied the code for HTML, JS and CSS into my view.jsp and when I loaded my portal the portlet looked fine but nothing could be clicked, not even the control panel!! Here is the CodePen site
https://codepen.io/jkrehm/pen/OybdrW
If Liferay 7.1 is running Bootstrap 4, this should work, but it locks everything up..
https://codepen.io/jkrehm/pen/OybdrW
If Liferay 7.1 is running Bootstrap 4, this should work, but it locks everything up..
Hello Kevin,
I believe that this might be happening because your div class="modal fade" is on top of everything else on the page.

You can probably solve this by changing it's display css.
Hope this helps.
Best regards,
Marta Santos
I believe that this might be happening because your div class="modal fade" is on top of everything else on the page.

You can probably solve this by changing it's display css.
Hope this helps.
Best regards,
Marta Santos
Thanks Marta,
Since the CSS seems to built in with the version of bootstrap I don't know where I need to change this CSS. Where do I need to put the CSS so it overrides .modal?
Since the CSS seems to built in with the version of bootstrap I don't know where I need to change this CSS. Where do I need to put the CSS so it overrides .modal?
Hi Kevin,
You can just add it in your portlet next to the rest of the css.
Best regards,
Marta Santos
You can just add it in your portlet next to the rest of the css.
Best regards,
Marta Santos
Followed quick start instruction here https://clayui.com/docs/get-started/introduction.html
But once I deployed my Portlet and click on the Sign In. It supposed to prompt for login .
But only shows the fade nothing else.
On the other hand, modal works.
Any Idea on how to fix this? using Liferay 7.1 as well
But once I deployed my Portlet and click on the Sign In. It supposed to prompt for login .
But only shows the fade nothing else.
On the other hand, modal works.
Any Idea on how to fix this? using Liferay 7.1 as well
Attachments:
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™