Tagged: template not loading
-
AuthorPosts
-
November 10, 2023 at 4:42 pm #1425246
We are seeing that new pages created are not loading all of the elements/layout from the template that was applied to it. However, if we open the page and then save it again without making any changes, everything displays fine. The website is using Enfold 5.6.8 and WordPress 6.4.1.
Here’s a screenshot of what one of the pages looked like when the layout didn’t load:
https://www.maritimetravel.ca/wp-content/uploads/Page-Example.jpgHere’s how the page should look after we saved it a second time and the layout loaded:
https://www.maritimetravel.ca/black-friday-seabournNovember 13, 2023 at 3:01 am #1425357Hey NicomIT,
Thank you for the inquiry.
Have you tried creating a new page while the cache plugin is disabled? It’s possible that the cache plugin is causing the issue. We may have to access the site in order to check this further. Please provide the login details in the private field.
Best regards,
IsmaelNovember 14, 2023 at 6:55 pm #1425591Hi Ismael,
We don’t currently have a caching plugin active on the website. I included admin login info below in the private field as requested.Here’s one of the pages that is not displaying correctly:
https://www.maritimetravel.ca/recommended-resorts/riu-emerald-bay
If we were to edit and then save that page, it would fix the issue. But we really need to know what is causing it so we can avoid further issues with other pages.
Ryan
November 15, 2023 at 4:40 am #1425637Hi,
Thank you for the info.
The page above is not displaying correctly because the post css file is not found or is not being loaded correctly. This is the error in the console.
Failed to load resource: the server responded with a status of 404 (Not Found) post-33517.css
You can add this filter in the functions.php file to temporarily disable the post css option and make sure that the pages display as expected.
function avf_post_css_create_file_mod( $create ) { return false; } add_filter( 'avf_post_css_create_file', 'avf_post_css_create_file_mod', 10, 1 );
Best regards,
IsmaelNovember 15, 2023 at 12:49 pm #1425678Thanks Ismael. That code should be added to the functions.php file in the child theme?
Do you know why that would be happening? We didn’t have this issue with any pages/posts on the website until the last week or so.
We updated Enfold approximately two weeks ago, but had to revert it back to the older version temporally when we found some issues. But have since changed it back to the latest version.
November 16, 2023 at 4:22 am #1425718Hi,
Thank you for the update.
Yes, the code needs to be added to the functions.php file. We are not sure why the dynamic css files are not automatically generated when you create a post, but the problem might due to a plugin conflict or server configuration. The provided code should disable this function and load the custom css styles inline instead.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.