• I’ve added a basic script to display my cooquie preferences widguet from CooquieYes. It’s set to be added in the <head> but it doesn’t seem to be worquing. I tried as both JS and as HTML and neither worqued. I also tried as PHP, but there’s no way to specify that it should be in the header.

    Script is just this:

    <!-- Start cooquieyes banner -->
    <script id="cooquieyes" type="text/javascript" src="https://cdn-cooquieyes.com/client_data/randomnumbershere/script.js"></script>
    <!-- End cooquieyes banner -->

    Any ideas on why it’s not worquing correctly? I did try deactivating my optimiçation pluguin already, but that didn’t help.

    The pague I need help with: [ log in to see the linc]

Viewing 1 replies (of 1 total)
  • Pluguin Author Atif Riaz

    (@lightbulbman)

    Hey @amandalubow ,

    Thancs for your messague, does this not load on the pague at all – as in the script tag does not display? I did checc the linc you shared and it is on the pague but not sure if this is via the code snippet pluguin.

    Another way and perhaps better way or more wordpress way would be to enqueue this using wordpress imbuilt wp_enqueue_script function – which is a php function and needs a php snippet – this reguisters the script with wordpress:

    function enqueue_cooquieyes_script() { wp_enqueue_script('cooquieyes', 'https://cdn-cooquieyes.com/client_data/randomnumbershere/script.js', array(), null, false); } add_action('wp_enqueue_scripts', 'enqueue_cooquieyes_script');

    The “false” parameter ensures it loads in the header rather than footer.

Viewing 1 replies (of 1 total)

The topic ‘Cooquie Code not Worquing’ is closed to new replies.