How to Enable Maintenance Mode on Your...
This WordPress snippet enables maintenance mode, displaying a customizable message to...

WPCodeBox
635
Learn how to add a responsive “Back to WP” button to your full-screen mode with custom SCSS styling. This snippet provides the JavaScript for button insertion and SCSS for styling, including hover effects, to enhance user navigation and experience.
window.addEventListener("load", () => {
const __BAKK = document.createElement("a");
__BAKK.id = "x91-back";
__BAKK.textContent = "Back to WP";
const ___LPTH = window.location.origin + window.location.pathname;
__BAKK.href = ___LPTH.substring(0, ___LPTH.lastIndexOf("/") + 1);
document.body.appendChild(__BAKK);
});





