Allow SVG Files Upload
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types.…
Disable Emojis
/** * Disable the emojis in WordPress. */ add_action( 'init', function () { remove_action( 'wp_head', 'print_emoji_detection_script',…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
Remove Unused JS
/** * We will Dequeue the jQuery UI script as example. * * Hooked to the…
Explicit Fixed Width and Height
add_filter( 'the_content', 'add_image_dimensions' ); function add_image_dimensions( $content ) { preg_match_all( '/]+>/i', $content, $images); if (count($images) <…
footer
footer description
Allow Templatera Templates to be used for Dynamic Templates
In Total 5.9 with the introduction of the built in Dynamic Template post type we removed…
Disable Suggested Donation Description In Campaign (Legacy)
Add this to your theme's function.php file.
n'parks-photographie
page d'accueil
Login Form Styling
Custom styling for login forms
Google Tag Manager
Google tag manager snippet (body)
Google AdSense Ad blocking recovery (Head Section)
Google AdSense Ad blocking recovery (Head Section) Snippet
Google AdSense Amp (Body section)
Google AdSense Amp (head section) Snippet