Halloween Sale 15% off Ends in See the plans

Snippet Library

Frontend & Design snippets for WordPress

Snippets that change how your site looks and behaves for visitors: a back-to-top button, announcement bars, custom fonts and styles, smooth scrolling and small layout fixes. For designers and site owners polishing the front of the site.

1–24 of 63 snippets “id”

  • HTML Frontend & Design

    "Show More" Button for Long Sections

    Shortens any block with the class "wpide-show-more" to a preview height with a fade, and adds a "Show more" button that expands it, ideal for long descriptions and terms.

  • HTML Frontend & Design

    "Skip to Content" Link

    Adds a hidden "Skip to content" link that appears when keyboard users press Tab, letting them jump past the header and menu, for themes that lack one.

  • HTML Frontend & Design

    "You Are Offline" Notice

    Shows a small notice at the bottom of the screen when the visitor loses their internet connection and hides it when the connection returns, so failed clicks make sense.

  • PHP Frontend & Design

    Accessible Tabs Shortcode

    Adds [wpide_tabs] and [wpide_tab title="..."] shortcodes to build tabbed content that works with mouse, keyboard (arrow keys) and screen readers.

  • CSS Frontend & Design

    Animated Gradient Background Class

    Adds a "wpide-animated-gradient" class that gives any Group or Cover block a slowly shifting multi-color gradient background, for eye-catching hero and CTA sections.

  • PHP Frontend & Design

    Before/After Image Comparison Slider

    Adds a [wpide_compare before="URL" after="URL"] shortcode that overlays two images with a draggable divider, perfect for renovations, retouching and redesigns.

  • PHP Frontend & Design

    Breadcrumbs Shortcode

    Adds a [wpide_breadcrumbs] shortcode that prints Home > Category > Post style breadcrumbs with schema.org markup, for themes that do not have them.

  • CSS Frontend & Design

    Clear Keyboard Focus Outlines

    Shows a strong, visible outline around links, buttons and form fields when visitors navigate with the keyboard, which many themes hide. Mouse clicks are not affected.

  • PHP Frontend & Design

    Click-to-Call Bar on Mobile

    Shows a full-width "Call us now" bar fixed to the bottom of the screen on phones, so mobile visitors can call your business with one tap.

  • HTML Frontend & Design

    Fade-In Page Transitions

    Fades each page in as it loads and gently out when visitors follow a link to another page on your site. Turned off for people who prefer reduced motion, and pages never stay hidden if JavaScript fails.

  • PHP Frontend & Design

    Floating Social Media Icons Bar

    Shows a slim bar of social media icons fixed to the side of the screen, with built-in SVG icons, accessible labels and an option to hide it on small screens.

  • SCSS Frontend & Design

    Fluid Heading Sizes (SCSS)

    Makes headings scale smoothly between mobile and desktop sizes with CSS clamp(), generated from a simple size table, so titles never look too big on phones.

  • SCSS Frontend & Design

    Frosted Glass Card Style (SCSS)

    Adds a "wpide-glass" class for a frosted-glass look (blurred, semi-transparent background and fine border), great for cards placed over photos or gradients.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.