-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts and styles are enqueued when not needed #18
Comments
Replicated and fixed. This will be addressed in the next version. |
This should be addressed in the latest version (1.5.0). Are you able to confirm that the issue has been resolved? |
confirmed. All working well :) |
sorry - not confirmed - I thought this was the spinner one. On the homepage and category pages I am seeing the 'tailor-styles-css' stylesheet still included, along with the following js:
|
I've added an additional check (is_singular()) to ensure scripts are not loaded for archive pages. Is that working for you too? |
Do you mean the check in includes/helpers/helpers-settings.php? At the moment that check is saying:
But that says - if not a single page then include scripts doesn't it? If you change it to:
Then it works - at least on my local install. |
True - that's what happens when I try to do things late at night! :) I've verified that this works as expected and included it in the latest version. Thanks again! |
The scripts and styles are enqueued on every page, regardless of whether the page supports tailor (home page, and archives), or whether the user can make use of tailor. By that I mean that admin styles are enqueued for public visitors.
The text was updated successfully, but these errors were encountered: