Hey,
The premium theme has a built in place for you to add this, however the free theme does not. You would need to use a plugin or else a child theme. Sorry!
Hannah
I am OK on working with a child theme as I wrote in my question details. Since as you wrote, it is possible to do it in free version using child theme, can you please tell me steps for it?
You should be able to paste it into your header.php file. Or you can use a simple plugin like this- https://wordpress.org/plugins/header-and-footer-scripts/
Hannah
OK. That would help. Thanks 🙂
So the template is in your templates folder templates/head.php
But I would suggest you just add a function to pull the script into the header from your child theme functions.php file. like this:
function custom_header_script() {
{ ?>
<!-- Script Starts -->
<!-- End script -->
<?php
}
}
add_action('wp_head', 'custom_header_script', 20);
Ben
Kadence Themes
Thanks Ben! That was the exact procedure I was looking for. Could I add Boostrap CDN in the same way by writing it in between the script tag?