Issue: Creating a Custom Header and Footer in WordPress I’m currently working on a WordPress website and facing some challenges with creating a custom header and footer for specific pages. Here’s a summary of the problem:
Goal: I want to create custom headers and footers that are different from the site-wide default ones for certain pages. These headers and footers should only appear on selected pages, not across the entire site.the thing is that the page I want it to be shown is using a diffrent theme than the rest of the website , I want the custom header and footer to be shown on this page, I've been having an issue with the checkout page , so I used a plugin called 'Multiple Theme Plugin' with this plugin I managed to disable the default theme and then enable Twenty Three theme instead , and this page doesn't have any footer or header , so I want it now to have the same Header and Footer as the rest of the website , default Header and Footer.
Problem: After creating the custom headers and footers, I’m unable to apply them correctly to the desired pages. Instead, the default header and footer are still being displayed. I’ve tried various methods, such as:
Using theme builders (Elementor, WPBakery, etc.) Modifying the theme’s PHP files directly Adjusting settings through the Customizer Despite these efforts, the custom designs do not appear as expected, or they override the entire site instead of just the target pages. What I’ve Tried So Far:
Using page-specific templates. Implementing conditional logic in functions.php. Utilizing plugins like “Header Footer Code Manager” to inject code snippets. Result: None of the above methods seem to work consistently. Either the custom header and footer are not loading, or they replace the site-wide elements on every page.
I would greatly appreciate any advice on how to properly set up custom headers and footers for specific pages, ideally without affecting the rest of the site. If anyone has a similar experience or a recommended solution, I’d love to hear your suggestions!