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.

25–48 of 106 snippets

  • SCSS Frontend & Design

    Consistent Form Field Styling (SCSS)

    Gives text inputs, selects, text areas and checkboxes across the site (comments, contact forms, checkout) one consistent, accessible look with clear focus states.

  • Universal Frontend & Design

    Prints a centered "© year Site Name. All rights reserved." line at the bottom of every page, with the year updated automatically.

  • HTML Frontend & Design

    Dark Mode Toggle Button

    Adds a floating moon button that switches the site to a dark color scheme, remembers the visitor's choice and follows their system setting on the first visit.

  • PHP Frontend & Design

    Different Logo on Selected Pages

    Adds a Page Logo box to the page editor so you can pick a different logo from the Media Library for that page. It replaces the site logo wherever the theme shows it, including the Site Logo block.

  • HTML Frontend & Design

    Dismissible Announcement Bar

    Shows a slim message bar at the top of the page (for sales, shipping notes or news) that visitors can close. It stays closed on later visits.

  • HTML Frontend & Design

    Exit-Intent Popup

    Shows a popup with your offer or newsletter link when a desktop visitor moves the mouse toward closing the tab, at most once every 30 days.

  • 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.

  • PHP Frontend & Design

    Full-Screen Search Overlay

    Opens a full-screen search box when visitors click any link to #search (for example a menu item) and closes with Escape, giving small headers a roomy, focused search.

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.