Site logo

Archived topic

Footer not showing

3 replies · Started by Kevin Hayes on February 25, 2021

Viewing posts 1–4 of 4

I'm aiming to develop a one page "landing page" style site, using all the GeneratePress/Blocks/Gutenberg features, no page builders, minimal custom code. I am a Gutenberg newbie but am fully committed to using it, with the GP toolkit.

On a minimally configured test site, I can't get the footer to show.

I've gone through the pre-posting checklist. The only plugins activated are: GenerateBlocks Version 1.3.1, GenerateBlocks Pro Version 1.0.2, GP Premium Version 1.12.3, Gutenberg Version 10.0.2. Caching plugin is deactivated, all caches I know about are cleared. Theme is GP 3.02, using a child theme.

I'm using the Search theme from the Site Library. The Search theme's footer is a block element, hooked into generate_footer, location Entire Site. I can view it in Edit mode.

When I set footer widgets to 1 in the Customizer, I get a blank footer widget in the proper place.

When I set footer widgets to 0, I get no footer, on any page.

I'm stumped. I have no idea where to look at this point.

Hi there,

change the Hook for the Footer Block Element to generate_before_footer

Yes, that makes it show up. Thanks.

Question: Are there best practices for what to do in the Customizer and what to do with Elements, specifically for this type of thing, that is, block element footers and headers? I get confused on where to apply various settings.

I'm used to using the Customizer and CSS for basic site settings, and am beginning to learn Gutenberg for laying out pages, but my training and experience over the years is to separate content from styling, which at least at this early point, Gutenberg kind of blows away. I wouldn't want to hand over all those styling controls to a site user, who should be concentrating on content.

You can continue to follow your current workflow by using the Customizer for all of your general styling.

When it comes to the Elements module - particularly the Block Element, these allow you to add content or replace content in your site. And this does sometimes entail adding styles at the editor level.

Some of the Hooks in the block element replaces theme elements - such as the generate_footer and generate_header they actually remove the Theme Element and replace it with the block.

In this instance the issue as the generate_footer actually refers to the Footer bar where the copyright info is - not the Widget area. As the Footer bar was disabled it also removes that Hook so there was no where for it to be displayed.

This archived topic is closed to new replies.