Redirect Attachment Pages
Sends visitors of media attachment pages to the post the file is attached to, or to the homepage for unattached files.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Sends visitors of media attachment pages to the post the file is attached to, or to the homepage for unattached files.
Sends visitors who submit the search form without typing anything back to the homepage instead of showing every post.
Sends visitors who land on the homepage to the matching language section (such as /fr/ or /de/) based on their browser language, once; their choice is then remembered.
Sends users to your homepage after they log out instead of showing the "You are now logged out" login screen.
Sends logged-out visitors who open /wp-admin/ to the homepage instead of the login page, so bots probing wp-admin do not learn where to log in.
Sends visitors who land on wp-signup.php to a page you choose (or the homepage) when network registration is turned off, instead of showing a bare "Registration has been disabled" screen.
Removes comment feed links from the page head and redirects comment feed URLs to the homepage, while keeping the post feeds.
Skips the BreadcrumbList piece of the Yoast SEO graph on the front page, where a one-item trail adds nothing.
Sends subscribers, customers and other users without editing rights from wp-admin to the WooCommerce My Account page or the homepage, with options to keep the profile screen open and hide the admin bar. AJAX and front-end forms keep working.
Sends users to the network's main homepage when they log out from any site, giving the whole network one consistent exit point.
Points the "Continue shopping" and "Return to shop" links to the main shop page instead of the last viewed product or the homepage.
Redirects logged-in users who visit the homepage to a members area, dashboard or account page, while guests still see the normal homepage.
When someone who is already logged in opens wp-login.php, they go straight to the dashboard (or the homepage for subscribers) instead of seeing the form again.
Users who cannot edit posts (subscribers, customers) land on the homepage after logging in instead of their admin profile. Staff still go to the dashboard.
Redirects visitors who hit a missing page in a secondary Polylang language to that language's homepage, so they are not dropped onto a 404 page.
When a visitor hits a missing page in a non-default WPML language, sends them to the homepage of that language instead of a 404, keeping them in their language.
Limits the main blog page to posts from the categories you choose, for example only News, while other categories keep their own archives.
Adds a "Show on" setting to every classic widget, so you can limit it to the homepage, single posts, blog and archive pages, or everywhere except those.
Adds a Site Health test that requests your homepage and one of your theme's stylesheets and reports whether text files are compressed (gzip or Brotli) and whether static files get long browser cache lifetimes.
Adds a Site Health test that loads your homepage and reports which common security headers (HSTS, CSP, nosniff, framing, referrer and permissions policies) are missing.
Keeps visitors on the homepage they asked for instead of Polylang redirecting them to another language based on their browser, which also avoids caching and SEO surprises.
Sends homepage visitors to a promotion or event page during a date range you set, such as a Black Friday sale, then switches back automatically.
Lays the header over the first section of the homepage with a transparent background and white text, then switches to a solid header once visitors scroll.
Makes Polylang pick the language set in a logged-in user's profile when it decides which language to show them on the homepage, instead of relying on browser settings.