Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove footer from all pages except the home page
Tagged: genesis_footer, Infinity Pro
- This topic has 11 replies, 4 voices, and was last updated 6 years, 3 months ago by
Terry.
-
AuthorPosts
-
July 29, 2019 at 1:14 pm #492669
randit
MemberHello.
I need to remove the footer from the Infinity Pro theme on all pages except the home page. How would I do this?
Thanks in advance for your help!
July 29, 2019 at 8:23 pm #492672Genesis Developer
MemberYou can write this code into the functions.php file
add_action( 'genesis_footer', 'paulc_site_footer', 1 ); function paulc_site_footer() { if( ! is_front_page() ) remove_action( 'genesis_footer', 'genesis_do_footer' ); }Hope this helps
July 30, 2019 at 5:36 am #492676randit
MemberHello.
Thank you so much for the response. I have added the code to the functions.php file and the footer still appears on the pages. Is there something else you can suggest?
Thanks again for your help.
July 31, 2019 at 8:31 am #492689Terry
MemberHi,
Depending on what you're trying to do, this may help...
add_action( 'genesis_footer', 'paulc_site_footer', 1 ); function paulc_site_footer() { if ( ! is_front_page() ) { remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_do_subnav', 5 ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); }August 12, 2019 at 10:14 am #492941randit
MemberHello:
Sorry for the delayed response. I used the code Terry provided above and got a site is experiencing technical difficulties error message so I still need help please.
I am using the Infinity Pro theme and want the theme's footer (footer 1,2 and 3 widgets) to ONLY appear on the home page. This theme displays the footer on all pages except the home page so I want the opposite.
Thanks again for your help and support!
August 12, 2019 at 11:01 am #492942Terry
MemberPlease share a link to your site.
August 12, 2019 at 1:25 pm #492946randit
MemberHello:
Here is a link: http://staging.dsir.flywheelsites.com/
It is in privacy mode: username: flywheel password: soft-ballyhooAugust 12, 2019 at 1:33 pm #492947Terry
MemberWhen I load the site, the Home page has the footer with 4 widget areas(Get in touch, FB, download app, welcome back), as does every page. You possibly tried something else?
The code I provided worked in a clean Infinity Pro child theme.
August 12, 2019 at 1:44 pm #492948Terry
MemberIs it possible that you have an older version of Infinity Pro or that the footer has been customized? The code isn't what I would expect for the Infinity Pro footer versions I have. That may be why the snippets aren't working.
August 12, 2019 at 1:55 pm #492949randit
MemberHi: Yes, there has been customization done below the footer area. That is probably the problem. Thank you for your help... I will need to figure this out with the footer customization. I appreciate your help!
August 13, 2019 at 3:16 am #492953Brad Dalton
ParticipantAugust 13, 2019 at 10:22 am #492959Terry
MemberAhhh yes, thanks Brad!
Sorry for the cut & paste omission. -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.