What is XHeader?
XHeader is a handy open-source WordPress plugin that allows you to easily create persistent headers and footers that will display globally on every page of your WordPress site. This can be extremely useful for adding banners, announcements, navigation menus, schema markup, custom styling rules, external scripts, and more.
One of the major benefits of XHeader is that it provides you with a simple graphical interface right within your WordPress dashboard to add custom HTML and JavaScript code, without needing to edit your theme files. This makes it easy for non-technical users to implement persistent headers and footers.
Some key features of XHeader include:
- Intuitive graphical interface for adding custom header and footer code
- Supports HTML, JavaScript, CSS, PHP, and more
- Options for displaying on all or selected pages
- Easily add schema markup for SEO
- Integrate external JS files like analytics scripts
- Schedule when headers and footers display
- Detailed control over positioning and styling
- Completely customizable for any need
- Actively developed and supported
XHeader takes care of output buffering to integrate the custom header and footer code on your site. There's also solid documentation and support available as well. For those running WordPress sites, XHeader is an excellent free plugin option for persistently adding any custom code throughout your site.