Show Bricks Elements Only to Logged-In or Logged-Out Visitors
Skips rendering any Bricks element with the CSS class "wpide-logged-in" for guests and "wpide-logged-out" for members, a quick alternative to setting conditions on each element.
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.
Skips rendering any Bricks element with the CSS class "wpide-logged-in" for guests and "wpide-logged-out" for members, a quick alternative to setting conditions on each element.
Hides category, tag and taxonomy descriptions on page 2 and beyond of an archive, so long intro texts are not repeated on every page.
Makes yearly, monthly and daily archives also list custom post type entries, such as recipes or events, not just blog posts.
Prints the description you write for each menu item under its title in classic theme menus, handy for mega menus and service menus.
Converts post dates and times on the page into each visitor's local timezone and language format in the browser, so an event posted for 18:00 London reads 19:00 in Paris.
Adds the post type and publish date after each title in ACF relationship and post object fields, so similar titles are easy to tell apart.
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.
Greets users in the admin with the date, time and IP address of their previous login, so they can spot logins they do not recognize.
Adds a "Total weight" row to the cart and checkout totals, useful for stores that charge shipping by weight.
Adds an accessible "Show" button inside password fields on the front of the site (account, checkout and membership forms), so visitors can check what they typed.
Adds the cookie-free Simple Analytics script to your public pages. No tracking ID is needed: data is matched to the domain you added in Simple Analytics.
Redirects old URLs to new ones with a 301 status from a list you maintain in the snippet. Good for a handful of moved pages.
Adds lightweight share links for X, Facebook, LinkedIn, WhatsApp and email at the end of each post, with no third-party scripts or tracking.
Removes the city and postcode or state boxes from the cart's shipping calculator when your rates only depend on the country.
Adds a column to Network Admin > Users showing how many sites each person belongs to, with the site names in a tooltip.
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 Site Health tests that check whether a privacy policy page is published, whether full commenter IP addresses are being stored, and whether the comment cookie consent checkbox is turned on.
Prints a small window.siteSettings object with the home URL, REST API root, AJAX URL, language and, for logged-in users, a REST nonce, so your custom JavaScript never hard-codes addresses.
Shows a short message, such as holiday hours or a shipping notice, at the top of every page's main content area in the Divi theme.
Adds the security token to My Account log out links placed in your navigation menus, so customers log out in one click instead of seeing a confirmation page.
Hides and stops requiring the street address fields on the classic checkout when the customer picks Local Pickup, since you will not deliver the order.
Removes the billing address fields from the classic checkout when everything in the cart is virtual or downloadable, keeping only name and email.
Stops sending comments from logged-in users who can edit posts (authors, editors, administrators) to Akismet, saving API calls and keeping staff replies out of the spam queue.
Stops the block library stylesheet loading on pages built with the Divi Builder, which do not use blocks, so each of those pages loads one stylesheet less.