Hello Marco,
I have just checked the link you send and aside from the script code, you also have to include the wow JS library and the CSS that comes with it.
You may update the code I previously provided to:
add_action('wp_head', 'add_header_code');
function add_header_code(){
?>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/animate.css">
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<?php
};
However, you have to make sire that the animate.css
and the wow.min.js
is pointed to the correct directory where those files are.
Based in the code above, you have to have animate.css
in wp-content/themes/x-child/css
then wow.min.js
in wp-content/themes/x-child/js
. You can set this directories when you login through FTP.
Please also note that since this is not something related to the theme but a customization, we cannot provide further support but the information previously mentioned should help you get started.
Hope this helps.