Archives: Snippets
Changing the WordPress Login Logo URL
function custom_login_logo_url() { return home_url(); // Or your desired URL } add_filter( ‘login_headerurl’, ‘custom_login_logo_url’ );Continue reading
Disabling the Admin Bar for Non-Admin Users
add_action(‘after_setup_theme’, ‘remove_admin_bar’); function remove_admin_bar() { if (!current_user_can(‘administrator’) && !is_admin()) { show_admin_bar(false); } }Continue reading
Font Weight correction for Menu Subcategories
.mc_vertical_menu h3 { font-weight: 600 !important; }Continue reading
Limit Revisions
/** * Limit WordPress revisions to 5 for all post types. */ add_filter(‘wp_revisions_to_keep’, function ($num, $post) { return 5; }, 10, 2);Continue reading
Untitled Snippet
Google Tag Manager
Totally fair, Warren — this part trips up a lot of people. Let’s break it down clean and clear: 🧠 The Two Parts of GTM Code 1. The Short Code This is your GTM Container ID — it looks like:…Continue reading
Beehiv Embed Code
test between posts
sadsadContinue reading