To use a global header or footer in wordpress you need to follow some step. Using custom header and footer is one of the professional signs. When you install a theme you can use the header and footer provided by the theme owner. But that is not good for your website. A good website always should be unique. And to make any website unique firstly, you need to make your header and footer unique. Read this tutorial with full concentration to make and use your customized header and footer template all over the website.
What is Header and Footer?
In Every website there are three parts. They are header, body and footer. Top bar of the website is called header. A header can contain different types of menus, logo, website title and tagline, An important notification. If you want to build a good website you must need a header. If you build a website with builders like wordpress, wix, weebly, blogger etc. then you will have a default header with each theme.
There are a section at bottom of every website containing copyright credit, address, contact menu, support menu, newsletter option etc. This section is called footer of website. Whenever you install a theme by default you use the theme footer. But to make a professional website you need to customize your footer. To customize your website header or footer you need to change the them or modify.
How to Customize Header and Footer?
Here, I will mostly discuss about how you can customize your header and footer in wordpress. There are two ways to customize your wordpress site header and footer. One is to edit code and another is to use plugins. Here are the instructions to customize your header.
Edit HTML Code of Theme
If you are expert in coding then you can edit your theme code to customize your website header and footer. But if you are not good at coding then don’t try to edit theme code. That may crash your website and pages. To edit theme code you need to go to the following menu option. You will find this on your wp-admin.
- WP-Admin > Appearance > Theme Editor
Whenever you will access this menu option you will get a warning not to edit theme code. So ensure whether you can edit the theme correctly or not.
Insert Headers and Footers by WPBeginner
Insert Headers and Footers by WPBeginner is the most used wordpress header and footer editor plugin. You can easily customize your header and footer with this plugin. This plugin has:
- 1M+ active installations
- Compatible with wordpress version 4.6 or higher
- Supported PHP version 5.2 or higher
- Quick to set up
- Simple to insert scripts
- Insert header code and/or footer code
- Add Google Analytics and Facebook Pixel code to any theme
- Add custom CSS
- Insert any language script
Head, Footer and Post Injections
Head, Footer and Post Injections is another amazing wordpress header and footer editor plugin. You can easily customize your header and footer with this plugin. This plugin has:
- 300K+ active installations
- Compatible with wordpress version 4.0 or higher
- Supported PHP version 5.6 or higher
- Quick to set up
- Insert code at in-page section
- Automatically add code just after the tag
- Edit footer code
- Distinct desktop and mobile injections
Elementor – Header, Footer & Blocks Template
Elementor is the best drag and drop editor ever. You don’t need to write any code or text if you have Elementor plugin. To get all features of Elementor you need Elementor Pro. Elementor Pro have huge templates for customizing your website. Elementor – Header, Footer & Blocks Template is one of them. You can customize your header, footer and any part of your website with this plugin. This plugin has:
- 1M+ active installations
- Compatible with wordpress version 4.4 or higher
- Supported PHP version 5.4 or higher
- Easy set up
- Easy to edit
- Can edit header, footer and any block
- Can use your header, footer or block all over the website
- You can set up rules where to use the template
Build Your Own Template
Using Elementor or the plugin above you can create your own template. There are plenty of header and footer template in Elementor library. You can use one of them to go ahead or you can create one yourself. To build your own template go to plugin option of Elementor and click add new. Then add required element from the left menu. If you use any of the above plugin (I suggest to use the 3rd plugin because it supports Elementor) you can go to the plugin option and create your own template from there.
Use Global Header and Footer
You can use a single header and a single footer all over the website. To use a header or footer globally you need to use a plugin. I suggest to use “Elementor – Header, Footer & Blocks Template” plugin. You can make and use a global plugin with this plugin. This plugin has options to choose:
- Custom Template Name
- Types of Template (Header, Footer or Block)
- Display Page (All page, Front Page, Support Page, 404 Page and so many options)
- Add Exclusion Rule (You can set All page except your desired pages)
- Add Inclusion Rule (You can include the list of pages where you want this to show)
- User Role (Logged in or Not Logged in, Registered or not an so on)
- Template Feature (Full page or Elementor Suggested or others)
- You can Set Feature Image for Your Template
To Use your template as global header and global footer set the “Display on” to “All Pages”. If you want not to show this on homepage then exclude front page. If your site have login feature set user role. Set the post template as you want. Then create, edit and publish your template. That is all to use a global header and footer.
If this tutorial is helpful to you please subscribe and share this to your friends.
See Also:
How to Get 1K Subscribers and 4K Watch Hours in Youtube Quickly