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.

The Jacksonville SEO Company For Your Business

By Dave Fogel | December 27, 2022

Looking for a Jacksonville SEO Company? You have come to the right place.  We have put together some helpful information about SEO that will hopefully answer some of the most common questions about SEO. What is SEO? An SEO (Search Engine Optimization) company helps businesses improve their visibility on search engines like Google, Bing, and…

What Are The Most Popular Facebook Ad Sizes?

By Dave Fogel | December 27, 2022

The most popular Facebook ad sizes are: 1200 x 628 pixels (1.9:1 aspect ratio): This size is recommended for most types of ads, including single image, carousel, and video ads. 1080 x 1080 pixels (1:1 aspect ratio): This square size is recommended for image and video ads that will be displayed in the news feed.…

Where Do Facebook Ads & Instagram Ads Appear?

By Dave Fogel | December 27, 2022

Facebook ads appear in a variety of places across the platform, including in the newsfeed, on the sidebar, and in Marketplace. In the newsfeed, ads are displayed alongside other posts from friends, family, and pages that have been liked. Ads are also displayed on the sidebar, where they appear alongside other suggested pages and posts.…

Posted in

Dave Fogel

Leave a Comment