• Resolved apload

    (@apload)


    Code Snippet plugin is activated and following code

    add_action( 'wp_head', function () { ?>
    
    <script>console.log("jctest");</script>
    
    <?php } );

    is also activated, but it doesn’t load. Actually i wanted to load there an external script for a cookie consent tool (ccm19), but i reduced it to the code above in order to find a working example.

    I’m publisher and developer (ASP.Net) and not WordPress user, but this can’t be so difficult. When I changed in WordPress to Customizer then I saw the code, which is even more strange for me.

    Any suggestions?

    Thanks, Jan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @apload – that code snippet is working for me. Your theme probably do not have wp_head(); for wp_head action hook to work?

    Thread Starter apload

    (@apload)

    Thanks Sanjeev

    How can I be sure if the theme Hever has it? Is it possible to add wp_head() myself or will it be overwritten by updating wordpress etc. in future?

    Hi @apload – You can check first by switching to the default WordPress theme such as Twenty Twenty One. If you don’t see an issue with that theme, you’ll probably need to contact Hever theme support.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Missing Snippet in Code’ is closed to new replies.