-
Author
-
March 6, 2017 at 20:40 #154926the-wireParticipant
Dynamic.css fails to load from time to time returning 404. The site has a custom media folder but the folder is writable and the files are there. The site uses WP SuperCache but the issue is there even without caching. There were no other errors on the pages as far as I could see – I checked the Console.
Please help!
March 8, 2017 at 15:35 #155052LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 8, 2017 at 17:39 #155088RaduModeratorHi,
Can you please provide the FTP and admin credentials to take a closer look please?
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 8, 2017 at 18:45 #155102RaduModeratorHi
Thank, you I’ve de-activated the wordfence and I cannot see the 404 link of that resource and the CSS it’s always loaded ( I’ve tried 15 – 20 pages refresh and access again from new windows)
Let me know if you notice if this issue had dissapeared with wordfence plugin de-activated.
Let me now
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 9, 2017 at 16:20 #155212the-wireParticipantThanks, I made the changes and will test again. Could you please remove the screenshot though? I don’t feel comfortable with the info being public.
Thanks!
March 9, 2017 at 18:35 #155235RaduModeratorSure,
Marked as private.And how it works now ?
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 9, 2017 at 18:39 #155236the-wireParticipantThanks. It seems ok so far but it is hard to say at the issue appeared very rarely anyway. I will re-activate Wordfence and keep an eye on it on the next few days.
Thanks!
March 9, 2017 at 18:40 #155237RaduModeratorOk activate back your plugins and test the behaviour, let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 9, 2017 at 23:50 #155273the-wireParticipantSorry but I am still experiencing the issue.
When is dynamic.css actually generated? It looks like it is periodically generated even if there are no changes/edits to the site. Just trying to understand the logic…
Thanks,
GabrielaMarch 10, 2017 at 17:17 #155330RaduModeratorHi,
The dynamic.css file it’s generated after you press save changes in theme options, as you can see the file remains physically on the server but isn’t accessible via http and if the folder isn’t writable the styles will be rendered in head instead of dynamic.css file.
Try to add this function to child theme
COPY CODEfunction handle_rendering_css() { add_action('wp_head', 'kleo_custom_head_css'); } add_action('init', 'handle_rendering_css');
The function needs to be pasted in wp-content/themes/kleo-child/functions.php
This will render also the css to the head
Let me know if the problem continue to happens using that snippet
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 10, 2017 at 17:35 #155332the-wireParticipantHi Radu,
I added the function and I will keep testing.
If the file is generated only when changes are made to theme options then why is the file modification date always very fresh? I have another site that I know no one has touched in the last week and dynamic.css was last modified this morning.
Sorry for so many questions. I like the theme and I would like to continue using it for other sites but I need to get to the bottom of this.
Thanks,
GabrielaMarch 13, 2017 at 16:53 #155509RaduModeratorThe dynamic.css file it’s generated in certain cases like:
theme activate, theme save options, customized save changes and theme update.
It’s ok with the function provided above ?
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 13, 2017 at 17:01 #155510the-wireParticipantIt seems that the function solved the issue (I hope I don’t speak too soon). I will keep a close eye on it for the next few days.
Thanks,
GabrielaMarch 14, 2017 at 18:28 #155624RaduModeratorOk, using that it should be ok loading the CSS into head, it cannot causes problem, but be with eyes on that and let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.