Your best bet is to rename the old header.php to header.bak.php and your new copy to header.php. header.php (there’s only one such file, always) is called from the other theme templates using get_header()
. What you could/eventually should do, if you don’t want to directly edit the existing theme, is set up a child theme, copy over header.php to that child theme’s directory, and edit it there. If the theme was custom-made and isn’t going to be updated anyway, you might however skip that part. Just make sure there’s a backup.
Related Posts:
- Undefined get_header function
- Page editor missing Templates drop down
- How to edit contents of dynamic_sidebar()?
- Where is get_header(‘shop’) file in Woocommerce templates
- I put my blog on a subpage, how do I get page title?
- How to hide/redirect the author page
- Need to give custom page template for each language in WPML
- Templates & CSS – Proper Programming Practice?
- Create Page that uses specific template
- Post formats template
- index.php template is used instead of blog page
- Hide Front-End Admin Bar Including 32 px Spacing
- What is a good way to present templated content in WordPress?
- Adding variable to get_template_part
- How to apply a custom template for posts by default?
- Change directory where get_header(), get_footer() and get_sidebar() look for templates
- How to move style from template file to section?
- Subpage template
- How to create a wordpress template without using any page
- Advanced Custom Fields – display when specific template used?
- How do I find the directory of a page template?
- Missing ‘Page Attributes’
- how to use custom page template in a page?
- the_excerpt producing empty output
- Conditionally display different images before the content in a page template
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Change wp-signup.php Page Template
- How to remove the Template drop down, but keep Parent and Order
- Templates have disappeared from drop down lists
- One of my pages uses the archive.php template only. Why?
- Getting pages filtered by template assigned
- Get link to a specific template file [closed]
- Default Template Selected After Changes in Elementor [closed]
- Use same page template for parent and child pages in a theme
- displaying category and subject posts
- Adding Query to Custom Page Template
- get_file_data to read data for Custom Template File?
- Page attributes missing
- Does wordpress templates always in files or in database?
- Return get_header and get_footer string instead of echo it
- wp_enqueue_style and different styles for blog template
- Page template option missing
- How do I get the page template name chosen?
- How can I add text to a specific ‘Edit Page’?
- get_header(), get_footer() from plugin template
- What template is used for viewing Media Library Files?
- Page template for a site from network
- Remove portion of header code from home page only
- Force WordPress to NOT display the manual excerpt
- Not so common HTML transition to wordpress issue
- Page header on specific page is different from the rest [closed]
- Single-page.php template file name not shown
- How to display custom post type?
- Hard Coding Components on a Client Specific Websites
- Import a header template from another theme
- Will placing custom templates in sub directory break any native WordPress functionality
- Organize template parts and page templates in folders in regards of template hierarchy
- Blog page won’t show Blog template
- trouble calling different header.php for home.php
- templates with page teasers Or Featured Items
- Random home page at each refresh between array of page IDs
- How can I pass a variable from a template to header.php of a theme
- Search button click sends to single-custom_post_type instead staying at the same page
- Display a custom 404 page without a redirect
- How can I make custom page templates work on child theme?
- Set og:image programmatically in custom single post with external images
- Change Page Template Based on URL Rewrite in WordPress
- Nested Page Template not showing in page attributes
- Creating custom post-listing templates in twentyseventeen child theme
- Header and footer fail to load with SSL and custom links
- When to use content-pagename.php?
- Submit form to another template (ugly url)
- Page Templates Used in Custom Post Type
- custom template – override plugin template in child theme – issue with scripts
- Is this the best way to complete disable category archive pages?
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- How to install a wordpress website template on an existing website?
- Custom Archive with Content for Custom Post Type
- Page.php vs Single.php
- My homepage’s width has reduced and I can´t fix it [closed]
- html blog template to wordpress template
- Is there any way to use get_template_part() with folders?
- A special single page templates for posts under a category and all its child category
- Accessing $post variable from template part
- What should I put on my index.php?
- Programatically create a page
- How to custom page template for the Gutenberg editor
- Use PHP templates as blocks
- Get search.php results in header.php?
- JQuery Plugins in WordPress
- Easiest way to map content (in json) to the view (template)?
- How to get all template files used for rendering a single post/page?
- Prevent header and footer from loading on specific pages with template or plugin
- Fixing media query
- Why does a custom php code inside a custom template not get executed?
- why does not showing my custom post category list in any template?
- Locating the HTML piece of code in wordpress
- WordPress form submit to custom page template does not work
- Using file outside of template hierarchy for Twitter sign in authentication
- Unload templates; disable parent Template Parts using only “theme.json”