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.

Are Facebook ads worth it?

By Dave Fogel | December 27, 2022

Facebook ads are becoming increasingly popular among businesses of all sizes, as they offer a low-cost, highly-effective way to reach a large audience. But are they really worth it? The answer is yes! Facebook ads can offer an unparalleled reach, allowing you to target specific audiences, demographics, and interests. This means that you can target…

9 Reasons why Facebook Ads are effective

By Dave Fogel | December 27, 2022

Facebook has a massive user base, with over 2.934 billion monthly active users as of 2022. This means that businesses have a vast pool of potential customers to target with their ads. Facebook’s ad targeting options are highly specific and granular. Businesses can target their ads based on demographics, interests, behaviors, and more. This allows…

7 reasons why Google Ads are important

By Dave Fogel | December 20, 2022

Google Ads is a powerful platform that allows businesses to advertise their products or services through Google’s search engine, search partners, and other properties, such as Google Maps and YouTube. Here are seven reasons why Google Ads is important for businesses: Reach new customers: Google Ads allows you to reach a wider audience and attract…

Posted in

Dave Fogel

Leave a Comment