Add new cookies
This commit is contained in:
@@ -789,4 +789,21 @@ if ( ! function_exists( 'calla_elated_get_module_part' ) ) {
|
||||
function calla_elated_get_module_part( $module ) {
|
||||
return $module;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function own_custom_css() {
|
||||
wp_enqueue_style('cookie-cookienoticepro-style', get_template_directory_uri() . '/plugins/CookieNoticePro/cookienoticepro.style.css', array(), '1.0', 'all');
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'own_custom_css');
|
||||
|
||||
function own_custom_scripts() {
|
||||
wp_enqueue_script('cookie-cookienoticepro-js', get_template_directory_uri() . '/plugins/CookieNoticePro/cookienoticepro.script.js', array('jquery'), '1.0', true);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'own_custom_scripts');
|
||||
|
||||
function add_custom_code_to_head() {
|
||||
echo '<!-- Custom Code -->' . PHP_EOL;
|
||||
include __DIR__ . '/plugins/CookieNoticePro/cookies.php';
|
||||
echo '<!-- End Custom Code -->' . PHP_EOL;
|
||||
}
|
||||
add_action('wp_head', 'add_custom_code_to_head');
|
||||
Reference in New Issue
Block a user