get_header()
is a WordPress template tag, so only available within WordPress. You are using a WordPress theme and by mistake placed it in the root folder of your site.
Place it within your WordPress installation folder in wp-content/themes/
folder. And finally activate
in through dashboard by navigating to Appearance -> Themes.
Related Posts:
- What is the meaning of %s, %1$s etc.? [closed]
- Include WP_Query in my own PHP file?
- PHP function showing wrong time in WordPress
- Has anyone tried putting PHP ActiveRecord on WordPress?
- Copyright info change in Theme Child PHP
- Add footer.php to WordPress child theme
- I want to remove the links from the term list returned by get_the_term_list
- Can I run custom php on specific pages in wordpress?
- Successful or Error Message after running mysql code in functions.php
- Can I view my own wordpress php source code on my hosted web server?
- How do i get (unique) page name?
- How to display posts of specific category using a custom Query in WordPress?
- How to display php source code inside a post using visual editor?
- The custom logo, site title, and description doesn’t appear at the same time
- stats_get_csv (WordPress Stats) to only display top posts (not pages)
- Hide wordpress field if data is empty in post!
- How to get the POST TITLE using the POST ID?
- Is XAMPP faster than running LAMP in WSL on Windows 10? [closed]
- Latest post in a specific menu
- Cause of Blank Lines Being Added to WP FIles?
- How to save checkbox values for logged in users?
- XAMPP-VM Mac OS Mojave wordpress debugging using XDebug
- Insert custom PHP head above in WP pages
- Log in / Log Out Custom Button
- How to do a code in php and have text before it? [closed]
- PHP nested If statement syntax
- Display Data in Table from External Database in WP using Shortcodes
- How to Configure Events List in WordPress to Disappear Event Once Date is Past
- Code snippet to show current php version inside “At a Glance” box in admin
- I installed WordPress locally now how do I login?
- using wp enqueue style to create a CSS file specifically for a page template
- Accidentally deleted php code in WordPress website [closed]
- How to prevent a function from running based on host (ie web vs local)?
- random reason on refresh
- Insert PHP code in Text
- PHP code snippet to remove microdata
- Counting number of posts in multiple (sub)categories using shortcode
- Need help for some PHP code
- Trying to copy linux blog locally with XAMPP – php fatal error
- Woocommerce display orders with products from specific categories to specific admins
- Woocommerce template file outputting tags
- Copying and pasting to WordPress “code editor” code via the front end and clipboard
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- call to undefined function mysql_connect
- How to put 2 php codes in functions.php without site crashing
- Displaying SQL query result from user input via wpdb
- admin-ajax.php 400 bad request – whats wrong with my code?
- style.min.css code issue
- how to run a php code in widget?
- how to add number value in front for variable [closed]
- Blog only showing code
- Display pages from specific page template
- why is markup routinely placed in functions in wordpress?
- Themes with variable width or single columns? I want to display source code
- Open all external links in new window – need help with the code
- How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]
- Where to put include php file?
- Can you not edit the HTML and PHP of your WordPress without paying?
- Dynamically added text at bottom of article – non searchable by PHP code
- how to create twitter card without plugin in wordpress website?
- Remove wp-mediaelement.css from wp_head
- How to create a WP_Query to search the Title or Tag?
- Guidance with The Loop for CMS
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- WordPress Redirect: Default Password Reset URL [duplicate]
- Changing the template hierarchy
- Remove an action hook within a Class
- WordPress Script stops suddenly
- Woocommerce api: create product with images – bad request
- WordPress admin pointers tour bug?
- Get term siblings of current child taxonomy
- Upload file could not be moved to wp-content/uploads
- HTML tags not showing in excerpt
- Add .htm extention to a custom taxonomy
- WordPress from url get external source title
- Logic on a Gravity Forms redirect [closed]
- Use post ID in functions.php file adminside
- Personalize checkout text
- When echo follow Ajax button inside Ajax pagination template not working?
- jQuery Ajax PHP function call returning [object Object]
- Nginx WordPress and another Web app URL structure
- Can I remove or edit an include() from a function with a filter?
- I want to include a particular word into the excerpt of every posts of a custom post type. How can I do that pragmatically?
- List sub categories and corresponding posts of a parent category
- Woocommerce My acount page
- Pages from admin dasboard missing after site migration
- Menu not updating for logged in users after redirect
- How To Add Custom User Meta During Registration
- Where to check in PHPmyAdmin / SQL database for subdomain
- Save the outputted image into the Media Library, with a different filename and extension
- Image limit from 1 to 5
- Splitting One Big WordPress Site into Multiple Small Sites
- How to link a word comprised of a custom field with another?
- Can’t upload files
- Shortcode not passing variable to included file
- I can’t seem to get excerpts showing inside get_pages and don’t know why?
- image dimension in php code args
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!