Having Multiple Footers in wordpress

Sometimes I like to have multiple footers for a site, or at least one for the homepage and one for the rest of the site. Fortunetly, wordpress makes this really easy to do.

WordPress has a special template tag for including them into your theme:

This function will accept only one parameter, a string, which works like the sidebar
function. Used without a parameter it will fetch the footer.php file and insert it.

So let’s say I want to have one footer for the homepage and then one for the rest of the site. I am going to use footer.php for the homepage and then create a second for the rest of the site. You could do it however you want.

First step, copy the footer.php file and rename it footer-interior.php. Now make the changes to the file that you want for the footer and upload it back to your site.

So now we need to call our interior footer. We call it like this. < ?php get_footer("interior"); ?>

The get_footer() template tag will retrieve the theme files “footer-interior.php” .

Simple as that.

* Don’t forget the quotes or it will not work.

How much do website updates cost?

By Dave Fogel | September 3, 2020

If you already have a website and want updates done, or new pages added, we charge $75 per hour. Unlike other companies in Jacksonville and St. Augustine that bill you for an hour with a small update, we charge in 15-minute increments saving you money. We will always provide you with an estimate of how…

Where do I get images for my website?

By Dave Fogel | September 3, 2020

We highly recommend taking your own images for your website. Almost any modern phone can take great pictures. We can edit them and make them pop for you. Having your own images makes your website feel more genuine and gives customers a better idea of your company. Most customers can spot a stock photo from…

Can you create copy / content for our website?

By Dave Fogel | September 3, 2020

Absolutely! Our copywriter Blair does excellent work and has been creating compelling copy for our clients for years. His content is also SEO focused, helping you rank better in search engines. Blair has done content on pretty much any subject you out there. We also create copy for blog posts to help keep your websites…

Posted in

Dave Fogel

Leave a Comment