How can I use an alternate header when a query var is present

ChatGPT provided a working solution: function load_custom_header_for_campaign( $template ) { // Check if the ‘campaign’ query var is set if (isset($_GET[‘campaign’])) { // Load the header-lp.php file instead of the default header add_filter(‘get_header’, function($header) { return ‘lp’; // This will load header-lp.php }); } return $template; } add_filter(‘template_include’, ‘load_custom_header_for_campaign’); It notes: The issue you’re encountering … Read more

all plug-ins load scripts on all pages

Most plugins will load their assets in the header on all pages, because they know very little about your site, and how you’re using the plugin. This is a reason why it’s generally advisable to use plugins only if you have to: they’re built to work for as many people as possible, which means they’re … Read more

Favicon not showing in Google search results

I always use Real Favicon Generator to generate favicon images for my websites, and have never had any issue. Their favicon checker did have several issues come up for your site: https://realfavicongenerator.net/favicon_checker?protocol=https&site=discovernavarra.com. I suspect that the redirect on favicon.ico may be the issue, though I do not know for sure. I never use a provided … Read more