About

Amateur hobbyist

28 Snippets
10+ Favourites
10+ Downloads

Dynamic Copyright & Current Year Shortcodes

Add this snippet to the functions.php file in your theme or plugin. Compatible with both classic…

Replace [year] with the current year

Type [year] anywhere that you want the current year to be inserted.

WPCode Functions

For the WPCode plugin interface

webfontloader.js

// Add custom scripts function add_custom_script_webfont_loader_js() { wp_register_script( 'webfontloader', 'https://cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js', array(), '1.6.28', true ); wp_enqueue_script( 'webfontloader'…

Code for importing theme files from plugin

Generated by Meta.AI /** * Import an entire folder from a plugin into the WordPress theme.…

add post formats

Adding different types of post formats: aside – Typically styled without a title. Similar to a…

Hide admin nags

.notice .is-dismissable { display: none; } /* In Wordpress, set this to be inserted into the…

Normalize CSS (The New Normal)

https://github.com/sarahschopick/the-new-normal.css.git https://github.com/sarahschopick/normalize-wordpress.git

Add dynamic copyright year

This shortcode will automatically add "Copyright © 2024" (or the current year).

Dynamic Shortcode Execution

Dynamic shortcode execution with block editor support. Allows shortcodes to execute everywhere, even within paragraph blocks.

Add dynamic copyright year (center) to footer

This shortcode will automatically add "Copyright © 2024" (or the current year) to the bottom of…

1 2 3