Anyone advise me how to create a login overlay while each page loading,is there any wordpress plugin available for that,

Dani AI

Generated

This thread is asking how to show a login overlay on page load. asked for a plugin or method, and pointed toward modal-style overlays. Below are practical, modern considerations and a short implementation plan that complements those replies without repeating them.

Decide behavior first: show the overlay once per visit or on every page, and only for visitors who are not logged in. Use a server-side check such as is_user_logged_in() to avoid loading overlay markup and scripts for logged-in users and for crawlers. Enqueue the minimal JS/CSS only when needed, and provide a clear fallback link to the normal login page. For the actual login, submit credentials over HTTPS (POST) to the standard endpoint or via the REST/API with nonces; never expose credentials in URLs or client-side storage. Ensure the overlay is accessible (keyboard focus trap, meaningful ARIA roles) and add a cookie/localStorage flag so dismissals persist. Watch caching: anonymous pages that include the overlay must not be cached and served to other users.

Troubleshooting and cautions: test with common caching and security plugins to avoid stale pages or blocked AJAX; check for theme JS conflicts; avoid forcing an overlay on every page if you intend to gate the whole site — a redirect to the login page or a membership plugin is cleaner. As noted, vet plugins and reviews before installing.

Recommended Answers

All 4 Replies

Not sure of a WordPress plugin, but check out jQuery. More specifically, do a google search for 'modal window'.

Just be careful when searching for wordpress. Have a look at my thread I started this morning Here.

Just be careful when searching for wordpress. Have a look at my thread I started this morning Here.

Thanks for the warning :)

It's a pleasure.:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.