Archived topic
If i remove "get_footer();"
5 replies · Started by jose on December 19, 2019
Hi, If i remove "get_footer();", will i get the close tags html, body, div.#page, and div.#content?
Hi there,
Any reason why you'd want to remove get_footer();?
What are you trying to achieve?
I opened the file footer.php and i watched a close tags "html, body, div.#page, and div.#content"
So if i remove "get_footer();" in page.php, i will remove this close tags "html, body, div.#page, and div.#content"
So will i have any issue?
You can give it a shot.
Any reasons why you need to do this? I'm wondering if there is a better way.
Just because i need to put a custom footer in a home page. (this footer should be inside a div, because is a part of grid layout)(Example: you have a grid layout in the home page with 10 squares, 1 of this squares is the footer)
Hi there,
you can use the GP Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
Select the Footer Hook and you have the option to replace the existing site footer. Set Display Rules to Front Page so it only applies to your Home page.