Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1395920

    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??

    #1395980

    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

    #1395988

    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.

    1
    2
    3

    #1396142

    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

    #1396148

    Hi Ismael,

    Thank you for your feedback.
    This has solved my problem.

    • This reply was modified 1 year, 9 months ago by NicomIT.
    #1396164

    Hi,

    Great! Glad to know that the issue has been resolved. Please do not hesitate to open a different thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘create different footer for different pages’ is closed to new replies.