Site logo

Archived topic

Remove entire Footer Bar

5 replies · Started by John on May 23, 2022

Viewing posts 1–6 of 6

Hi !

This did not work:

add_action( 'after_setup_theme', 'tu_remove_footer_area' );
function tu_remove_footer_area() {
remove_action( 'generate_footer','generate_construct_footer' );
}

Please advise. Thanks !

John

Hi David,

I referred to the Element on johnottomagee.com
which eliminates the copyright-footer.

I entered the exact same settings in discuss-culture.com.
Still did not work.

New Element
Hook
Edit Hook
generate_header
Disable Site Header
Display Rules: Entire Site

Please advise. Thanks !

I thought the code below was CSS.
It's php.
Problem solved.

Thanks, David !

add_action( 'after_setup_theme', 'tu_remove_footer_area' );
function tu_remove_footer_area() {
remove_action( 'generate_footer','generate_construct_footer' );
}

Hi John,

Can you try adding it through a plugin like Code Snippets instead? Make sure to delete the Hook Element you created first before doing this because not doing so will cause issues.

Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets

add_action( 'after_setup_theme', 'tu_remove_footer_area' );
function tu_remove_footer_area() {
remove_action( 'generate_footer','generate_construct_footer' );
}

Alternatively, as mentioned by David, you may opt to use a Layout Element to disable the Footer. Example: https://share.getcloudapp.com/o0uGy7JE

Hope this clarifies. :)

Glad the issue has been resolved, John! :)

This archived topic is closed to new replies.