Tagged: footer, search results
-
AuthorPosts
-
October 11, 2022 at 4:32 pm #1368445
Hello,
I have a separate page to be displayed as a footer. However, it is sometimes displayed (link1) and sometimes not (link2) on the search results page. Please have a look.
Thank you,
MarinaOctober 12, 2022 at 6:58 am #1368521Hey Marina,
Thank you for the inquiry.
Does it work when you add more entries with the “website” keyword? It is possible that the last entry (Enfold’s About) in the search result is causing the issue. Please try to create another entry or check the last entry for any layout or html issues.
Best regards,
IsmaelOctober 12, 2022 at 9:51 am #1368540what is your choice on that enfold options:
page to replace footer and keep socket
or
page to replace both footer and socketand what do you mean by: it is displayed?
Is it displayed ( as on other pages ) as footer substitute – or do you mean it is listed in the search results itself ?October 12, 2022 at 7:09 pm #1368636Hello Ismael,
I moved the Enfold’s About page to drafts, but it did not help. Now if you search for, for example, SITE, the last entry is Portfolio and there is no footer: link1. However, if you search for SYSPROG, the last entry is also Portfolio, but the footer is displayed: link2.
Best regards,
MarinaOctober 12, 2022 at 7:14 pm #1368639Hello Guenni,
I have the option page to replace both footer and socket selected, and I mean the display of the footer at the bottom of the page (as on other pages), not within the search results.
Best regards,
MarinaOctober 19, 2022 at 5:21 am #1369324Hi,
Sorry for the delay. For some reason, this condition in the footer.php file returns false, so the footer is not rendered in the search page.
/* * Check if we should display a page content as footer */ if(! $blank && in_array( $footer_option, array( 'page_in_footer_socket', 'page_in_footer' ) ) ) {
To fix the issue, we edited the code and replaced it with:
/* * Check if we should display a page content as footer */ if( is_search() || ! $blank && in_array( $footer_option, array( 'page_in_footer_socket', 'page_in_footer' ) ) ) {
Best regards,
IsmaelOctober 19, 2022 at 4:22 pm #1369425Hello,
Thank you for your help. You can close the ticket.
Best regards,
MarinaOctober 20, 2022 at 11:24 am #1369563Hi,
Thanks for the update, I’ll go ahead and close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Custom footer is not always displayed on the search results page’ is closed to new replies.