Share the post “How to Add a Custom 404 Page in WordPress Using Atahualpa”
FacebookTwitterShare… window.addEventListener(“DOMContentLoaded”, function(){ if ( navigator.share ) { let shareurl = document.location.href; let btns = document.querySelectorAll(“.juiz_sps_link_shareapi button:not([data-bound])”); const canon = document.querySelector(“link[rel=canonical]”); if (canon !== null) { shareurl = canon.href; } btns.forEach(function(el) { el.closest(“.juiz_sps_link_shareapi”).removeAttribute( “style” ); el.setAttribute( “data-bound”, “true” ); el.addEventListener(“click”, async () => { try { await navigator.share({ title: “How to Add a Custom 404 Page in WordPress Using Atahualpa”, text: “How to Add a Custom 404 Page in WordPress Using Atahualpa – “, url: shareurl, }); console.info(“Nobs: Successful share”); } catch(err) { console.warn(“Nobs: Error sharing”, error); } }); }); } });
What is a 404 Page and Why Do I Want a Custom One?
A 404 page is the page that’s displayed when someone tries to access a page on your site that doesn’t exist. Maybe it once did and doesn’t now. Maybe it moved. Maybe it never existed. Whatever the case, the visitor to your site is lost and needs a helping hand.
The default page that shows is pretty boring. It’s not entirely unhelpful, because it still shows your header and […]