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]
- Add colors to existing color palette without replacing it
- add generated stylesheet from parent theme after child-themes style.css
- Change Genesis Tag from Page Template [closed]
- How do I get my child-theme to work with my theme’s includes folder?
- 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
- Create a theme by combining a parent and a 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?
- 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?
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- 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
- 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
- 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
- How to override p2 breathe theme plugin in content template file?
- Is it possible to make *.js and folders visible in theme-editor
- add_filter to parent theme helper class function from child theme
- Replace function in a child theme
- Can’t remove DIV from hooks in Storefront child theme [closed]
- 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
- Using a starter theme vs starter theme with child theme
- How to create and populate with few links a menu in child theme functions.php?
- Create a child theme from multiple themes
- Why would changing a child theme to a normal theme pass a Template is missing. error
- 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?
- Hestia Child theme creation
- Alignment Problem [closed]
- 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?
- 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
- Translate a child theme with pure PHP and gettext
- Remove h1 from 2015 theme
- What might cause a featured image not to display?
- Add content after get_header
- Converting a theme to a child theme in a network
- How to modify theme content in Thematic?
- Understrap-child conditional js script
- Why front-page.php doesn’t show content of file instead shows loop
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How can I access variables from theme in child theme? [closed]
- How to display home page last modified date in anywhere of wordpress theme?
- How to show metabox on page if it is using a template
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- Child theme menu not appearing in Twenty Seventeen
- Edit Product Archive design for Woo theme
- How can I fix my theme header for my CSS stylesheet?
- How to test another theme in a live WordPress website instead of live preview?
- Duplicate child theme incl. design changes
- Move the social media icons to the left of a WordPress nav menu for Soledad child Theme
- How to connect two child themes on different sub domains to the same base theme
- Editing Them with Child Theme Basics [closed]
- How to customize the colors within a stylesheet using a WordPress setting
- how can I re-utilize and class on a child theme
- Protecting work on client’s web host
- How to migrate the menu from the site on my own theme in WordPress?
- Extending arrays in parent theme without completely overriding the files
- Standard Way To Do Custom Work Within A Page?
- WordPress theme Modifications not showing up on live server
- add_action works outside condition but not inside it
- Global Navigation menu in diiferrent wordpress setups
- Is there any way to show child theme in theme detectors?
- Should I create a child theme for a parent custom theme? [closed]
- I’m new in developing responsive WordPress Theme, so which framework to use or work from scratch? [closed]
- What’s your workflow for converting a static HTML website to WordPress? [closed]