Hi,
I want to create and set up different footers for different pages, but not able to do that with enfold theme, can anyone help me??
Hey NicomIT,
Thank you for the inquiry.
Are you trying to control the visibility of the widgets in the footer, or display different sets of widgets on certain pages? If so, you can try the following plugins.
// https://wordpress.org/plugins/if-widget/
// https://wordpress.org/plugins/widget-logic/
You can also display a page based footer (Enfold > Footer > Default Footer & Socket Settings) and control the visibility of the content using css.
Best regards,
Ismael
Hey Ismael,
Thank you for your feedback, but my requirement is little different. I have already created a footer template page with the Avia Layout Builder and set up this page to replace footer from theme options, which is working fine. But now i have created another footer template which i wanted to use for few inner pages, that i cannot set for those inner pages anyhow, so i want to know how can i achieve this. screenshots linked for better understanding.
Hi,
This is possible but you have to modify tee footer.php file directly. Around line 59, you will find this code.
$post = AviaCustomPages()->get_custom_page_object( 'footer_page', '' );
This code retrieves your footer page, so what you can do is alter the value of $post based on certain conditions. For example, you can add the following code below that line to retrieve the other footer page when viewing the home page.
if(is_home())
{
$post = get_post(23);
}
Replace 23 with the actual ID of your custom footer page.
Best regards,
Ismael
Hi Ismael,
Thank you for your feedback.
This has solved my problem.