get_header( $name )
is a WordPress function, that will try to load the file header-{$name}.php
from your theme’s root folder. If this file doesn’t exist, WordPress will load the default header.php
file.
Related Posts:
- How did you incorporate WooCommerce in your own WordPress theme?
- Change directory where get_header(), get_footer() and get_sidebar() look for templates
- How to duplicate a page template but make minor changes to the header?
- Return get_header and get_footer string instead of echo it
- How is WooCommerce cart.php template supposed to be used?
- Remove portion of header code from home page only
- Not so common HTML transition to wordpress issue
- Page header on specific page is different from the rest [closed]
- Undefined get_header function
- Import a header template from another theme
- /wp-admin/post.php shows 404 template on submit
- trouble calling different header.php for home.php
- Pagination problem (plugin wp-pagenavi) with a custom post type?
- How can I pass a variable from a template to header.php of a theme
- Set og:image programmatically in custom single post with external images
- Header and footer fail to load with SSL and custom links
- changes to templates not showing on server
- Adding Page Attributes Metabox and Page Templates to the Posts Edit Page?
- Is there a way to list all used/unused WP templates?
- How do I get the URL of a specific size featured image?
- Create Page that uses specific template
- Sharing templates with the JSON API?
- Prevent private post 404
- Where is the /blog/ url set from?
- NextGen Gallery template cache [closed]
- Adding variable to get_template_part
- Set template based on query in URL
- Template tags for Buddypress
- Plugin shortcode won’t work on a custom template file [closed]
- ACF image field to WordPress featured image
- Child theme template file will not load
- How to display only an excerpt of the content with custom post types?
- get_template_part returns NULL
- ACF – Theming Flexible Content
- adding meta data using plugin to top of head
- Display “large” image size and show caption in attachment page
- How to delete read more span on single post view?
- WordPress editable template fields
- Conditionally display different images before the content in a page template
- Headers already sent when I try to add headers via a shortcode
- Show all parts in multipage post
- Why are 404s not triggering my 404.php template?
- List Category Posts rewrite necessitates rewrite of customised templates
- Is there a way to create a block template that is not limited to a post type?
- Can’t format content of Rich Text Editor in Template
- get_file_data to read data for Custom Template File?
- How to publish a Page and Posts using single template
- What is the best practice to style archive page 2,3,etc differently than archive.php?
- How to create a post template with two sidebars
- != and !== both not always working? [closed]
- Page template for a site from network
- WordPress 3.3.1 single post template
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Prevent 404 and serve custom template for custom URL
- Add stylesheet per layout
- use a custom page to display search results
- When a user registers, create a page from an existing template with their username as the page name
- Theme settings Page: Settings Api vs Update_Options
- reCAPTCHA on page template without plugin
- How to add description over forum list on bbpress root page
- two active templates for one post
- Where is the code for “Front Page Template”?
- Help Understanding Template Hierarchy
- Pull comments from one page/post into another page/post?
- what is template-name.php
- templates with page teasers Or Featured Items
- If Child or Grandchild of Page
- Different header for each category
- How do i ‘deactivate’ a plugin only on a certain page template?
- Is it possible to create custom links inside a template?
- How do I custom a page that doesn’t exist in the page list?
- How to check if short code is present in template?
- Uncaught Error: Call to undefined function twentytwenty_the_post_meta()
- Timber + MtHaml, or any other HAML-like HTML shorthand
- Unable to access wordpress page
- How to change the width of certain paragraph or header blocks?
- How to configure my blog page
- Set Content-Type header in do_parse_request filter
- Archive only for /year/month, not terms
- Why does the blog page not take the page template selected?
- Why would adding a template file to a child theme cause an error in template-loader.php?
- Insert Plugin on a custom page
- How can I add some blocks to template without changing template file?
- Creating a popup
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- WordPress not picking up custom templates in sub directory
- Category template not displaying all post formats
- Is it possible to call a template file inside wysiwyg editor? And how?
- Retrieving post ID from current page
- Mysterious template change after database import/export
- 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?
- Styling own template
- Problem with permalink structure for WordPress custom post_type archive template
- Make default template two columns?
- Read more button not working
- pass dynamic value to page to pull in categorised post cards
- How to limit block activity (insertion/deletion) to inside of a Block Template on the Admin Screen?
- How to make a Template page to show the information of different things Shop and Product page?
- WordPress template restored by mistake
- Unload templates; disable parent Template Parts using only “theme.json”