Hi,
Thank you for the reply, I’m not good at php. I add this script in the function.php of the child theme to test and it not show hello world in post, does I need to add the id of the posts our something ? The idea is to add it to every posts.
/**
* Show certain scripts on certain post type/s.
*
* @return string The scripts for specific post types.
*/
function hnf_custom_head_scripts() {
if ( 'post' === get_post_type( get_the_ID() ) ) {
echo '<script> Hello world </script>';
}
}
Thank you for your time,
Regards,
PM