About

Amateur hobbyist

28 Snippets
10+ Favourites
10+ Downloads

Add Theme Supports

Reference: https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#opt-in-features

Bootstrap 5

// Add custom scripts function add_custom_script_bootstrap5() { wp_register_script( 'bootstrap5_js', 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js', array(), '5.3.3', true ); wp_enqueue_script( 'bootstrap5_js'…

Typography Enqueue

function typography_enqueue_styles() { // Enqueue Typeboost.css from Cloudflare CDN wp_enqueue_style('typeboost-css', 'https://cdnjs.cloudflare.com/ajax/libs/typeboost/1.0.0/typeboost.css', array(), '1.0.0'); // Enqueue webfontloader.js…

Hide All Admin Notices in Sidebar

Hides all admin notices in a collapsible sidebar. AI generated code. Use with caution.

Admin Functions for posts.

Make it easier to edit posts when viewing archives or single pages. Add page slug to…

Display both published and modified date

‹?php // Code from codewp.ai function codewp_display_dates( $content ) { if(get_post_type() != 'post') { return $content;…

Dynamic copyright year using HTML

Adjust the styling either inline or using css

Post Shortcodes

estimated read time, breadcrumbs, related posts

Back to Top Button (copy)

Add a simple button to scroll back to top on the frontend.

Dynamic year for inserting copyright using only html with inline js

Adjust the styling either inline or using css. Either automatically add this to your site-wide footer,…

Normalize

Settings to normalize across browsers

Hide admin nags

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

1 2 3