-
AuthorPosts
-
November 25, 2019 at 5:54 pm #1159935
Hey all,
We are having an issue with a site where the footer is printing the markup instead of showing the content that was built using ALB. This is the only page that is having issues and we had thought it had to do with the plugin we are using on the page (Events Calendar Pro) but another page with the same plugin displaying content is showing the footer just fine. We also tried finding a way to just not display the footer on this page at all so we are open to that too if there is no possibility of getting it to work. See private content for URL’s to both the page that needs help and the page that works fine.
November 27, 2019 at 5:36 am #1160558Hey Andrea,
I’m seeing the same thing on both pages using Chrome, did you manage to get it working? If not then please let us know how to reproduce the problem.
Best regards,
RikardNovember 27, 2019 at 4:43 pm #1160690Sorry, I need to get you a login to see the community events area. Here’s a login for ya!
November 30, 2019 at 11:10 pm #1161505Hi,
If you first remove the content of this page and then start adding it slowly, could you check if this would fix the issue?
Best regards,
BasilisNovember 30, 2019 at 11:38 pm #1161509Those pages are automatically created through the Events Calendar so there’s no way to rebuild them.
December 4, 2019 at 12:58 pm #1162556Hi,
Thank you for the update.
Have you tried enabling the ALB for the “wp_router_page” post type? Is the post type created by a plugin?
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type
Best regards,
IsmaelDecember 4, 2019 at 4:23 pm #1162646December 5, 2019 at 11:01 am #1162877Hi,
Thank you for the update.
The page seems to be an item from a custom post type called “wp_router_page”.
body id=”top” class=”wp_router_page-template-default single single-wp_router_page postid-893 logged-in admin-bar rtl_columns stretched roboto theme-enfold woocommerce-js tribe-js tribe-theme-parent-enfold tribe-theme-child-curlyhost curlyhost tribe_community_edit customize-support” itemscope=”itemscope” itemtype=”https://schema.org/WebPage”
Try to enable the ALB for the “wp_router_page” post type as described in the documentation above.
Best regards,
IsmaelDecember 5, 2019 at 5:27 pm #1163087Ismael,
I added in the php from https://kriesi.at/support/topic/layout-builder-added-to-popup-maker/ and changed the “popup” post type to wp_router_page in order to enable ALB for this post type and there is no change on the page. Could you help further? If you need access to anything in order to troubleshoot please let me know.
December 6, 2019 at 5:25 am #1163299Hi,
Thank you for the update.
I added in the php from https://kriesi.at/support/topic/layout-builder-added-to-popup-maker/ and changed the “popup” post type to
The filter from that thread has been removed. You have to use the new filter “avf_alb_supported_post_types” as shown in the documentation.
function avf_alb_supported_post_types_mod( array $supported_post_types ) { $supported_post_types[] = 'wp_router_page'; return $supported_post_types; } add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
Docs: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type
Best regards,
IsmaelDecember 6, 2019 at 9:13 pm #1163461Ismael,
Unfortunately, that PHP snippet isn’t working either… maybe there is a way to just remove the footer on this particular page?
December 8, 2019 at 7:53 pm #1163861December 10, 2019 at 6:19 pm #1164551Hey Mike,
Thanks for the suggestion, we have already tried disabling plugins and checking themes. We also made sure everything is up to date.
We did try disabling this plugin again and the issue is still present unfortunately.
December 11, 2019 at 8:38 am #1164741Hi,
Thank you for following up.
Try to edit the footer.php file, look for this code around line 48:
$footer_widget_setting = ! empty( $footer ) ? $footer : $footer_options;
Below, add this code:
if(is_singular('wp_router_page')) { $footer_widget_setting = 'all'; }
This should display the default footer when a wp_router_page item is currently displayed.
Best regards,
IsmaelDecember 11, 2019 at 4:56 pm #1164875Thank you! I can work with that!
December 12, 2019 at 6:09 am #1165070 -
AuthorPosts
- You must be logged in to reply to this topic.