You don’t want to do that. When someone looks at a page on your site, WP chooses page.php to show it (that’s a bit of a simplification, but is fine for this explanation).
page.php needs that call to get_header()
to include the header.php
file, which in turn will not only display the visible header of the site but usually will contain everything necessary for building the <head>
section of the HTML document, including linking to stylesheets. By removing that line from page.php
you have prevented WP from creating the whole of that part of the page.
Additionally, you don’t want to edit a third party theme as any later updates will overwrite your edits. Any changes you want to make should use a child theme.
The best advice is that you should choose a theme that already has the header where you want it. If for some reason that really isn’t possible then creating a child theme can at least let you adjust things with some level of future proofing.
Related Posts:
- how can I add an icon/image for a child theme?
- WooCommerce shop page to use my custom template [closed]
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Child Theme vs Duplicate Theme Renamed
- Hide a div that is part of all pages on one specific page
- How to add Color Picker in Theme Options for the following?
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- add generated stylesheet from parent theme after child-themes style.css
- add_image_size is scaling, even though crop is set to true
- Change Genesis Tag from Page Template [closed]
- How do I get my child-theme to work with my theme’s includes folder?
- How do I get a parent theme modification from a child theme?
- CSS in child theme not overriding the parent theme [closed]
- Modifying JS files in Child-theme
- Optimal solution to develop a wordpress theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Nesting Functions within Functions
- Should I update my _s theme?
- Create a theme by combining a parent and a child theme
- How to keep my custom theme changes after updating genesis child theme
- De-registering parent style sheet css recommended?
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- Can a child theme based on Starker theme be released as free to use theme for public use?
- Override Constants in Child theme
- Changing order title and featured image in blog post (Astra theme)
- Loading files for theme and child theme (Require)
- how can I remove the sidebar from my wp homepage [closed]
- Unhook action from child theme
- Does any theme support child theme?
- Am I supposed to create a child theme for every theme I use?
- Child themes: disabling the parent
- How to Edit the style of header title of Twenty Eleven Theme?
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- Child theme style.css versioning
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- Removing non native customizer settings from a child theme
- Link to a .po file in a child theme
- Alias to theme folder for local development
- Inheritance of parent theme plugin files in a child theme
- Divi Child Theme not appearing in “Themes” [closed]
- Override template file i subfolders
- What happens to child theme if I change to new version of parent theme?
- Include Parent functions.php in Child Theme functions.php
- Injecting a custom sql query into a page/theme
- Select full Image Size on widget “Genesis – Featured Posts”
- How to first edit in local WordPress editor on page and the add code?
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- Child theme enqueue scripts using new functions
- Why is it needed to enqueue parent stylesheet in child theme?
- changing blog title to an image using filter function in child theme
- Can´t access child theme´s scripts dependencies found in parent
- Show woocommerce categories on my theme menu styling
- How to override p2 breathe theme plugin in content template file?
- Child Theme’s style.css not loading in mobile browser
- Is it possible to make *.js and folders visible in theme-editor
- add_filter to parent theme helper class function from child theme
- How to properly create a child theme
- Replace function in a child theme
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Renaming a theme so it aids SEO and the theme used is hidden
- filemtime(): stat failed warning within a child theme
- Overrite parent functions using child functions
- How can I override a require() used in functions.php of parent theme to my child theme
- Derive child theme from separate theme
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Using a starter theme vs starter theme with child theme
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to create and populate with few links a menu in child theme functions.php?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Overide enqueue in non plugable function via child theme
- Why would changing a child theme to a normal theme pass a Template is missing. error
- Starting point for custom Themes [closed]
- Simple child theme modification but links are broken
- Making a child theme for “Airi”
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Why still output /wp-content/themes/twentynineteen?
- Do I need to create a child theme for JointsWP
- Hestia Child theme creation
- Alignment Problem [closed]
- Why is switching between themes breaking my child theme?
- Avada Child Theme Development
- Questions from a new WP Dev [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- How to override template files in parent theme?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- Do I need to re-import Susy to work with it in a child theme? [closed]
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Confusion about theme’s parent and child functions.php file
- How to Use Webpack with WordPress Script Modules and Enqueue a Custom Class