11 Snippets
30+ Favourites
80+ Downloads

Remove Unused JS

/** * We will Dequeue the jQuery UI script as example. * * Hooked to the…

Open all external links in new tab

This makes the manual link tab association obsolete. All links to another domain will open in…

Duplicate Posts and Pages

// Add the duplicate link to action list for post_row_actions // for "post" and custom post…

Remove Google Fonts (Elementor)

add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );

Remove Google Fonts (non-Elementor)

function disable_google_fonts() { return false; } add_filter( 'print_google_fonts', 'disable_google_fonts' );

Remove Gutenberg Block CSS

Remove Gutenberg Block Library CSS from loading on the frontend

Explicit Fixed Width and Height

Explicit Fixed Width and Height for images

Shortcode to show Thumbnail

Show the featured image anywhere in the post by using [thumbnail].

Ensure Webfont is Loaded (Elementor)

add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { return 'swap'; }, 10, 3 );

Ensure Webfont is Loaded (non-Elementor)

function custom_font_display( $current_value, $font_family, $data ) { return 'swap'; } add_filter( 'font_display', 'custom_font_display', 10, 3 );