How to check if short code is present in template?

Assuming the first block of code is executed when your plugin is launched, the has_shortcode function is prescanning the post content to check if the shortcode is present. You then enqueue the scripts. That will work, because plugins are initiated before the scripts are enqueued (init hook comes before wp_enqueue_scripts hook). If you enqueue scripts … Read more

website shows blank when visiting from mobile

The error is actually a redirect problem: This page isn’t workinga gribusiness.thefarmersmanual.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS You will need to look into how the mobile version is set-up – responsive seems fine, but perhaps there is an addition JS redirect, which might not be needed.