• Resolved jayzeealam007

    (@jayzeealam007)


    Hello, I am encountering an issue when attempting to render the job form while logged out of WordPress. It performs correctly when logged in, but I have discovered an error in the console: “Uncaught ReferenceError: jQuery is not defined.” I attempted to resolve the issue by inserting a manual jQuery CDN in my WP head, but the error persists. Can you offer assistance?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author boybawang

    (@boybawang)

    Hello @jayzeealam007 – This is most likely a caching issue, or an issue with your CDN. Have you tried clearing your cache and/or disabling your CDN to test this out?

    Thread Starter jayzeealam007

    (@jayzeealam007)

    Thanks @boybawang it was the CDN issue. I deregistered the default jQuery library, also attaching the code I added to my functions.php file to modify:

    function enqueue_jquery_from_cdn() {
    // Deregister the default WordPress jQuery
    wp_deregister_script(‘jquery’);

    // Enqueue jQuery from the Google CDN with the 'jquery' handle
    wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.6.0.min.js', array(), null, false);

    }
    add_action(‘wp_enqueue_scripts’, ‘enqueue_jquery_from_cdn’, 1);


    Plugin Author boybawang

    (@boybawang)

    Thanks for the update, @jayzeealam007. I’m glad it’s working!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content not Displaying when logged out of WordPress’ is closed to new replies.