Archived topic
Widgets not responding
7 replies · Started by troyw on October 14, 2021
Hey guys,
Not sure if this is one for Generatepress or Generateblocks as it seems to be a bit of both.
I have tried out one of the Generateblocks Footer Templates for the first time, but I am having a bit of trouble with it.
I can't get rid of the GeneratePress Footer Bar. If I remove the text from Customizer > Layouts > Footer Bar, it still appears but with a preset Generatepress footer. Nothing i do makes this go away? Even if I put the Generateblocks Template in the Footer Bar, the GeneratePress copyright still appears, but to the left or right.
I also want to put in the copyright content into the Generateblocks Footer Template, but when I do it doesn't respond to the %current_year% command.
Finally, there is a gap above the Footer template which I can't seem to get rid of. I want it to meet the block above it, but it won't?
Thanks
Hi there,
Are you only trying to remove the site footer info bar that holds the copyright message?
If so, can you try deactivating "Copyright" module on Appearance > GeneratePress and check if its the desired result?
Hey Elvin,
No, I would have expected that to work too, but it makes no difference? Still shows up at the bottom
To clarify:
You only want to remove this part? - https://share.getcloudapp.com/yAu0WYQP
If that's the case, the easiest way to deal with it is by CSS:
footer.site-info {
display: none;
}
It's hardcoded to the theme - https://github.com/tomusborne/generatepress/blob/b60b853630da6d9015722da903e53c8064148b0a/inc/structure/footer.php#L30-L55
While you can remove the copyright bar completely, you'll still see empty space because of the default padding so the CSS I've provided should hide it from display completely.
Yes, that did it Elvin. So is there a way to make the Copyright in the new Footer Block present the copyright symbol and year using this %copy% %current_year%
Thanks
You can create a shortcode for that so you can use the shortcode block on your Block element or Widget.
Example:
function current_year( ){
return '© '.date('Y');
}
add_shortcode( 'display_current_year', 'current_year' );
And then use [display_current_year] to display the date.
That's a very cool trick, Nice!
Thank you!
No problem. :D