Modal CSS being called in admin backend
-
Hi,
I thought I should make you aware that I noticed /plugins/age-gate/dist/admin.css is being called in Modal styles the WordPress backend, which is probably not necessary (I can’t think why the modal box style would be needed for administrators in the backend). It can probably be corrected by adjusting the enqueue to exclude !is_admin()
This is causing an unintentional issue with my site. I created some Gutenberg blocks which does create modal using the same Bootstrap markup. Normally this is not an issue as I have not included any styles that make the modal visible for backend editing, however since the plugin is calling in styles, it has the unintended effect of preventing me from scrolling a page in the backend due to overflow:hidden taking effect.
I am working on my own temporary fix for my own site to completely disable the modal, but I thought I’d make you aware.
- The topic ‘Modal CSS being called in admin backend’ is closed to new replies.