-
AuthorPosts
-
January 12, 2021 at 7:57 pm #1271976
Enfold Query
I have something odd going on with my custom post types and Avia Builder.
Most of my pages and custom post types use the same template with two colour sections at the top of the page.
The first colour section has
• a background image set to scroll with ‘background image’ set to stretch to fit
• a custom height and default padding
• it is set to hide on small and very small screens
The second colour section has
• a background image set to scroll with ‘background image’ set to stretch to fit
• a custom height and default padding
• it is set to hide on large and medium sized screensThis set up has been working fine for years. but now the all custom post types (crew stories, travel and sailing holidays) are not displaying properly.
For instance this ‘page’ here displays correctly
And this ‘custom post type’ from the Sailing Holidays sections here displays incorrectly
On all the ‘custom post’s both the colour sections are now being displayed and the second one covers most of the page and sits behind all the other content.
I am using the plugin Custom Post Types UI to create the custom posts and have code in my functions php child theme to display Avia Builder for the custom post types.January 13, 2021 at 6:16 pm #1272237This reply has been marked as private.January 14, 2021 at 4:59 pm #1272463OK so here’s where I am now –
I’m not certain but I think I have now narrowed this down to some kind of conflict between the Enfold theme (4.7.6.5) and custom post types.
1. On the old staging version of my site using version 4.5.3 of Enfold works fine before and after I have updated to today’s date all the plugins and wordpress (to 5.6).
2. If I update Enfold to version 4.7.6.5 before (or after doing all the other updates) the custom post types are broken.
3. The custom post types remain broken if I deactivate my child theme (containing all the custom css and php)
4. The custom post types remain broken after deactivating all the plugins so I think I have ruled out plugins as the problem.January 15, 2021 at 3:16 pm #1272751Hey,
We are sorry for the late reply!
Could we please have access to your staging site to be on the safe side? :)
It seems like currently default theme is active and we would like to update Enfold to latest version and compare the layout between versions.Best regards,
YigitJanuary 15, 2021 at 5:59 pm #1272795Hi
Brilliant. Thanks for getting back to me on this. Login details supplied as private content.
I have left the old staging site as it was without updating the plugins, wordpress or enfold.
I have also taken full backups of both the staging and the live sites and also have very easy backup reinstall option with my host so in the event of anything unforeseen happening just email me and I will roll it back.
Thanks again
SuJanuary 18, 2021 at 12:44 pm #1273319Hi,
Thank you for the info.
We enabled the Enfold theme back in the staging site and tried to edit one of the custom posts, but the Advance Layout Builder (ALB) is not loading properly. Could you update the theme to the latest version (4.7.6.4) and replace the avf_builder_boxes in the functions.php file with the avf_alb_supported_post_types filter? Usage examples of the new filter can be found in the following threads.
// https://kriesi.at/support/topic/new-custom-post-types/#post-1271763
// https://kriesi.at/support/topic/alb-for-new-post-type-not-working-after-wordpress-5-6-update/#post-1267377
// https://kriesi.at/support/topic/equal-height-columns-break-layout-in-the-events-calendar-events/#post-1266925Same as the previous one, the new filter should enable the ALB for the custom post types. You might also have to disable the Performance > File Compression settings after updating the theme to the latest version.
Best regards,
IsmaelJanuary 18, 2021 at 2:35 pm #1273336Hi Ismael
Thanks.
Did the above. Replacing the avf_builder_boxes in the functions.php file with the avf_alb_supported_post_types filter has sorted the problem.
viewed a custom post and the problem was solved,
The old avf_builder_boxes code in the functions.php was breaking the custom post types after updating the enfold theme.
Problem solved. Phew.January 18, 2021 at 4:23 pm #1273355 -
AuthorPosts
- The topic ‘Custom Post Types – Colour Sections Not Displaying Correctly’ is closed to new replies.