Content not Displaying when logged out of WordPress

[ad_1]

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?

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);

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer