WordPress – enhance any theme with footer widgets

WordPress – enhance any theme with footer widgets

I am using a free theme that provides only one widgets area – a sidebar. In its paid version, though, there is also another widget area – footer. The theme displays a copyright message in the footer and provides no method (in the free version) to change or remove it.

Currently, I would like to change the copyright message and add a link to the Privacy Policy page. In the future maybe I will want to put something else. So I could have either hardcoded the text and link into my theme or I could create an extensible solution.

I decided I would add a new widget area in the footer. The contents of it could be configured using WordPress’ Theme Customization feature (Appearance > Customize > Widgets).


The task was even simpler than I expected. It is the best idea to first create a child theme instead of directly modifying the original theme. Also please check your theme’s license – if it is GPL, you are free to edit.

My related project

E-book: How to set up free WordPress platform for IT blogs

Do you want to set up a typical blog but you don’t know how to start, which plugins to use or how to customize the site? I spent a few weeks in total doing that from scratch – from learning the ecosystem to adjusting the platform to my very specific needs. Now I want to share with my experience and make the start easier for you.

Useful links:


  1. Copy footer.php from the parent theme to the child theme.
  2. Edit footer.php to remove copyright and include footer’s sub file with widgets area.
  3. Create the footer’s sub file with widgets area that will display the widgets.
  4. Register new widget in fuctions.php.


Make a full backup of your site before continuing.

The first step is to make a copy of the parent theme’s footer.php file and copy it to the child theme. This can be done using FTP.


The theme files are located in /private_html/wp-content/themes/ folder on the server.

I edited the footer.php file in my child theme. I removed all contents and loaded an extra file that is responsible just for the widgets. The contents of that file could be inlined, it is only a good practice to split files into functional blocks. I put the widgets in site-info class even though it is not really true, only because that CSS class provides center alignment.


Footer’s sub file

I created the file that was referenced from footer.php in line 5. Its full file name will be:
template-parts/footer/footer-widgets.php. Again, this can be done using FTP.

my child theme
    │   └───footer-widgets.php

I copied its contents from the Twenty Seventeen theme and removed one widget area (it had two footer areas) and cleaned the code a bit. I named my widget area sidebar-footer. This is the result:


Edit functions.php

The last step was registering the new widgets area. I edited functions.php and added at the end (please skip <?php if it’s already there):


Customize widgets

Now it was time for checking if it all worked.

I went to Appearance > Customize > Widgets and found Footer area to be there. I edited it and added Custom HTML widget. I left the Title empty and put the following line to Content:


Success 🙂


You can find more about adding custom sidebars in my other posts:

0 0 votes
Article Rating

Want more?


Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x