Tagged: multiple Footer
-
AuthorPosts
-
June 3, 2021 at 1:37 pm #1303766
We can already change Sidebar Settings or select sidebar widget, in right sidebar “Layout” of post edit screen, for each entry.
In the same way, can’t we change selected page as footer in Footer Settings for each entry?There is a reason why I want this.
Even now, if the page is ALB enabled, we can include a page element in the content as a footer. But the case posting using WordPress’ default features without ALBs, and you try to put a full-sized ALB element like a footer in the content area with the sidebar visible, the layout will be broken.I mainly want use the each footer element as some call-to-actions differently in as some pages, such as a banner or a guide to another page.
I would like to solve this problem by adding functions to Enfold in the future, or by customizing if it is possible to solve the problem using the current functions.php.
Please consider this.
June 8, 2021 at 4:32 am #1304513Hey nonononotch,
Thank you for the inquiry.
There is no option for this yet, but you can use the following filter to assign a different footer page for specific page or pages.
add_filter("avf_custom_page_id", function($page_id, $which, $template) { if($which == "footer_page") { if(is_page(3255)) { $page_id = 3548; } } return $page_id; }, 10, 3);
The code above checks if the current page has the ID 3255, and if it is, then show the page with the ID 3548 as footer.
Best regards,
IsmaelJune 8, 2021 at 4:58 am #1304517Thanks for the solution, Ismael.
I tried the code you gave me, but unfortunately it did not work as intended.To be more specific, the situation is similar to forcing Page Conent into the WordPress default (with sidebar) single post page.
(2) The result of trying the code you gave me
- This reply was modified 3 years, 6 months ago by nonononotch.
June 9, 2021 at 11:48 am #1304843Hi,
Thank you for the update.
Would you mind providing the link to the actual page where you need to display a different footer and the link of the other footer page? And post the login details in the private field so that we could test it properly. Please make sure that the Appearance > Editor panel is accessible.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.