Add to Cart Without a Page Reload on Product Pages
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.
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 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.
Shows a quick "Remove this item?" confirmation when a shopper clicks the remove (×) link in the cart, preventing accidental removals on phones.
Adds a small round button in the bottom corner that appears after scrolling down and takes visitors back to the top of the page.
Shows a simple three-step progress bar (Cart, Checkout, Done) at the top of the cart, checkout and order-received pages, so shoppers know how close they are.
Shows how many characters are left while typing a comment and stops input at the limit you set.
Shortens very long comments to a few lines with a soft fade and a Read more / Show less button. Works with classic themes and the Comments block, and leaves comments whole when JavaScript is off.
When a search returns exactly one result, opens that result directly instead of showing a results page.
Hides the fields of a Contact Form 7 form once it has been sent successfully and leaves only the thank-you message, so people do not submit twice.
Wraps the searched words in mark tags in result titles and excerpts, so visitors see why each result matched.
Adds Hotjar heatmaps and session recordings to your public pages, without recording logged-in staff.
Logs users out right away from plain logout links (for example in menus) instead of showing "Do you really want to log out?".
Adds helpful placeholder text to the comment, name, email and website fields of the comment form while keeping the visible labels for accessibility.
Adds hint text inside the username, password and email fields on the login, lost password and registration screens.
Adds "-" and "+" buttons around the quantity box on product and cart pages so shoppers can change quantities with a tap.
Submits the comment form in the background and shows the new comment (or the "awaiting moderation" note) right away, instead of reloading the page.
Ticks the "Save my name, email, and website in this browser" box on the comment form by default, so returning commenters do not retype their details.
Shows a thin bar at the top of the window that fills up as the visitor scrolls through the page.
Sends visitors who submit the search form without typing anything back to the homepage instead of showing every post.
Keeps what visitors type into a long form saved in their browser, so a reload, a crash or an accidental back click does not wipe out their answers. Cleared after submitting.
Scrolls the page to the Contact Form 7 success or error message after submitting, so visitors on long pages and phones see the result.
Makes every Gravity Forms form jump to its confirmation or error message after submitting, so visitors on long pages and phones see the result.
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.
Collapses the comments section behind a "Show comments" button, so long discussions do not distract from the article or load avatars until wanted.
Turns the variation dropdowns on product pages (size, colour and so on) into clickable buttons, keeping WooCommerce's own logic for prices, stock and images.