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.

Will Facebook ads still be effective in 2023?

By Dave Fogel | December 20, 2022

Yes, We predict Facebook Ads will still be effective in 2023. Facebook has made several changes to its advertising platform since the iOS 14 update that caused them to lose most of its tracking ability when users left the platform.  Long story short, FB could no longer see where users went after they left the…

Why should you use Google Ads?

By Dave Fogel | December 20, 2022

Google Ads is an advertising platform created by Google that allows businesses to reach potential customers and increase their online visibility. It is a powerful tool that can be used to target specific audiences and promote products and services. Google Ads enables businesses to create engaging ads that can be delivered to the right people…

Why Google Ads is better than Facebook Ads

By Dave Fogel | December 19, 2022

Google Ads offers businesses a number of advantages over Facebook Ads. Google Ads allows businesses to target specific locations and audiences, allowing them to reach the people that are most likely to be interested in their services. Additionally, Google Ads offers businesses more control over their campaigns, allowing them to adjust their campaigns in real-time…

Posted in

Dave Fogel

Leave a Comment