"Get Directions" Map Link Shortcode
Adds a [map_link] shortcode that links an address to Google Maps or Apple Maps directions, opening the visitor's maps app on phones, without embedding a map or loading any script.
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.
Adds a [map_link] shortcode that links an address to Google Maps or Apple Maps directions, opening the visitor's maps app on phones, without embedding a map or loading any script.
Adds simple products to the cart in the background from the product page, updating the mini cart and showing a confirmation instead of reloading the page.
Adds Tools > Autoloaded Options showing the total size of options WordPress loads on every page and the 40 largest ones, with a button to stop autoloading any option that does not need it.
Stops browsers on large screens from downloading huge image versions by leaving very wide sizes out of the responsive srcset list.
Turns off the automatic sizes="auto" attribute WordPress adds to lazy-loaded images, which some themes and sliders display incorrectly.
Removes the loading="lazy" attribute WordPress adds to images and iframes. Use it when another plugin handles lazy loading or it conflicts with a slider.
Stops WordPress from loading block patterns from the WordPress.org pattern directory, leaving only theme and plugin patterns.
Turns off the speculative prefetching of links that WordPress 6.8 adds to the front end, for sites with heavy pages or strict analytics.
Tells WordPress to skip lazy loading for the first three images on a page, which usually improves Largest Contentful Paint.
Adds the "no-lazyload" class (and matching skip attributes) to the site logo and the featured image of single posts, so Smush and other lazy-load plugins load them immediately and improve Largest Contentful Paint.
Makes content images fade in smoothly when they finish loading instead of popping in, for a more polished feel.
Answers requests for missing images, CSS, JavaScript and font files with a tiny 404 instead of loading a full theme page, saving server time.
Prints the contents of a critical.css file from your active theme folder directly in the page head, so above-the-fold content is styled before the main stylesheet finishes loading.
Lets WordPress print more of the small per-block stylesheets directly in the page instead of as separate files, which saves several network requests on pages with many different blocks.
Tells WordPress's built-in speculative loading (prefetching pages on hover) to skip cart, checkout and account pages, which are personal, never cached and expensive to build, so hovering over their links no longer costs server time.
Replaces the Gravity Forms AJAX loading spinner with a small inline SVG spinner in your brand color, with no extra file to download.
Stops the Google reCAPTCHA script that Contact Form 7 adds to every page from loading where no form is shown, which speeds up the rest of the site and hides the badge there.
Stops the Easy Digital Downloads stylesheet loading on blog posts and other pages without store content, trimming a request from most page views.
Stops WooCommerce stylesheets and scripts from loading on pages that are not part of the store, such as blog posts and the about page.
Stops the threaded comments script from loading on pages that have no open comments or where threading is turned off.
Marks the background image of the first Cover block on a page with fetchpriority="high" and turns off lazy loading for it, which speeds up hero sections (better LCP).
Submits the comment form in the background and shows the new comment (or the "awaiting moderation" note) right away, instead of reloading the page.
Sends an HTTP Link preload header for your theme's main stylesheet, so browsers, and CDNs that support Early Hints, start downloading the CSS before the HTML has even arrived.
Upgrades WordPress speculative loading (6.8+) from prefetch to prerender with moderate eagerness, so pages open almost instantly after a hover.