/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/
add_action('wp_head', 'wt_cli_add_href_to_links', 1);
function wt_cli_add_href_to_links() {
	if (!class_exists('Cookie_Law_Info')) return;
	?>
	<script>
		window.addEventListener( 'DOMContentLoaded', addHrefToLinks );
		function addHrefToLinks() {
			var wt_cli_links = document.querySelectorAll( '#cookie-law-info-bar a, #cliSettingsPopup a' );
			wt_cli_links.forEach( el => {
				if(!el.hasAttribute('href'))
					el.href = "#";
			});
		}
	</script>