Archived topic
Dev Theme Footer
9 replies · Started by Matt on November 22, 2020
Hi Guys,
I am building a theme based of the 'Dev' template and can't for the life of me find where the footer template/ block is actually declared. I can't see it in the Elements editor?? Where should I be looking?
Thanks
Hi,
I'm not exactly I understand what you mean.
To clarify: Did you mean the footer elements? The footer elements in Dev template are added as a widgets placed on footer widget 1 to 4 and footer bar.
As for the actual generated DOM structure of the footer bar, it is written within the theme's footer.php
Ok.. I want to hide this footer and use my own custom footer. Can i do this?
Thanks
Yes. Delete the footer widgets and create your own footer element using the generate_footer hook.
Hey Matt,
Do you have an example of what you are trying to achieve?
Let me know :)
It's just a custom footer. The current footer with widgets etc doesn't work for my use case.
I have setup a 'bloc' element with an image and some text.
Settings:
Block Type - Hook
Hook - Generate Footer
Priority - 10
Location - Entire Site
Although this footer does display, it doesn't remove the default footer.
Strange. Any chance you can link us to the page in question?
You may have to go to Appearance > Widgets and delete all of the footer widgets.
Removing the widgets at Appearance > Widgets did the trick.
Thanks for the help guys!
Thanks Bryan!