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–42 of 42 snippets “x”

  • HTML Frontend & Design

    Play YouTube Links in a Lightbox

    Opens links to YouTube videos (with the class "wpide-video-lightbox" or around a thumbnail image) in a large on-page video player, and only contacts YouTube after the click.

  • CSS Frontend & Design

    Print-Friendly Styles

    Hides navigation, sidebars, comments and the admin bar when a page is printed, and prints link addresses after external links.

  • HTML Frontend & Design

    Reading Progress Bar

    Shows a thin bar at the top of the window that fills up as the visitor scrolls through the page.

  • CSS Frontend & Design

    Reverse Column Order on Phones

    Flips the stacking order of a Columns block with the class "wpide-reverse-mobile" on phones, so an image placed on the right appears above its text instead of below.

  • HTML Frontend & Design

    Rotating Testimonials

    Shows the items inside any block with the class "wpide-rotator" (for example Quote blocks in a Group) one at a time, rotating every few seconds with dot buttons to pick one.

  • HTML Frontend & Design

    Share or Copy a Highlighted Quote

    Shows a small toolbar when readers highlight text in a post, with buttons to copy the quote with a link back or share it on X, Bluesky or LinkedIn.

  • SCSS Frontend & Design

    Spacing Utility Classes (SCSS)

    Generates margin and padding helper classes such as mt-2, mb-4 and px-3 from a spacing scale, to fine-tune block spacing with an extra CSS class.

  • CSS Frontend & Design

    Stop Sideways Scrolling on Phones

    Prevents the whole page from scrolling sideways on phones when a wide image, embed or full-width block sticks out a few pixels past the screen edge.

  • HTML Frontend & Design

    Subtle Parallax Effect for Images

    Gives images inside blocks with the class "wpide-parallax" a gentle parallax movement while scrolling, adding depth to hero and feature sections.

  • HTML Frontend & Design

    Turns a Group, Row, Gallery or Query Loop post list with the class "wpide-carousel" into a swipeable horizontal carousel with previous/next buttons, using native scroll snapping.

  • PHP Frontend & Design

    Typing Text Effect Shortcode

    Adds a [wpide_typing words="faster|safer|simpler"] shortcode that types and deletes each word in turn, for lively hero headlines like "Make your site faster".

  • CSS Frontend & Design

    Use the System Font Stack

    Switches the site's text to the fonts already installed on each visitor's device (San Francisco, Segoe UI, Roboto), which look native and load instantly.

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.