<?php
/**
 * Recommended way to include parent theme styles.
 * (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
 *
 */  

 add_action( 'wp_enqueue_scripts', 'astra_child_style' );
  function astra_child_style() {
	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
	wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css',array('parent-style'));
}


function add_google_ads_code() {
    ?>
    <!-- Your Google Ads code here -->
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3509392739956699"
		 crossorigin="anonymous"></script>


    <?php
}
add_action('wp_head', 'add_google_ads_code');



// function enqueue_custom_script() {
//     // Register the script with WordPress
//     wp_register_script(
//         'clever-core-script', // Handle name
//         'https://scripts.cleverwebserver.com/89e8c94729f3d873ccf13be1732e43e4.js', // Script URL
//         array(), // Dependencies
//         null, // Version
//         true // Load in footer
//     );

//     // Localize the script with data
//     $script_data = array(
//         'data-target' => 'window.name || (window.frameElement && window.frameElement.getAttribute("id"))',
//         'data-callback' => 'put-your-callback-function-here',
//         'data-callback-url-click' => 'put-your-click-macro-here',
//         'data-callback-url-view' => 'put-your-view-macro-here'
//     );

//     wp_localize_script('clever-core-script', 'cleverCoreData', $script_data);

//     // Enqueue the script
//     wp_enqueue_script('clever-core-script');
// }
// add_action('wp_enqueue_scripts', 'enqueue_custom_script');







?>