Location: site_wide_header
Online shopping
traffichaus PIX
Track Button and Link Clicks as Google Analytics Events
function track_click_events() { ?>Continue reading
Enqueue Custom Admin CSS
function my_custom_admin_styles() { // Ensure the file path is correct wp_enqueue_style(‘my-custom-admin-style’, get_stylesheet_directory_uri() . ‘/css/custom-admin-styles.css’); } // Hook the function to ‘admin_enqueue_scripts’ to apply it to the WordPress admin area add_action(‘admin_enqueue_scripts’, ‘my_custom_admin_styles’);Continue reading
Admin/Nav Extension – CSS
/* this is an update I made on the wpcode website that should trigger an available update badge */ .mx_nav { background: #dadada; padding: 0 0 5px 0; margin: 0px 0 -5px -20px; line-height: 27px; border-bottom: 1px solid #c5c5c5; }…Continue reading
Google Ads Tracking Snippet – Testive Tutoring
Auto Google Ad – (Non-R19)
document.addEventListener(“DOMContentLoaded”, function () { function excludeChap() { const scripts = document.getElementsByTagName(‘script’); const scriptsArray = Array.from(scripts); // Loop through each script element scriptsArray.forEach(script => { // Check if the script’s content or src attribute contains the specific string if (script.innerHTML.includes(‘1810952886731558’) ||…Continue reading