There are no errors in your code shown above and I’ve double checked to see it working correctly in a fresh WP install. It should not be the cause of your errors.
A white screen is usually any error but it’s not printed to the screen.
Take a look at the DEBUG section of the codex to change that. This might need to be dropped into your wp-config.php
.
// allow debugging
defined( 'WP_DEBUG' ) or define( 'WP_DEBUG', true );
// log errors to wp-content/debug.log
defined( 'WP_DEBUG_LOG' ) or define( 'WP_DEBUG_LOG', true );
// show errors on screen
defined( 'WP_DEBUG_DISPLAY' ) or define( 'WP_DEBUG_DISPLAY', true );
Related Posts:
- Enqueue less file not working in child theme?
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Enqueueing a code block from an options framework
- Execute only on a certain page
- Using PHP to toggle stylesheet and header image, set in cookie
- Change logo based on incoming domain
- Adding tawk.to code just before body tag on functions.php file
- How to enqueue CSS and JS only on specific template?
- Deregistering a script in WordPress seems impossible
- Conditional Header in wordpress
- wp-comments-post.php file returns a blank page
- Need help enqueueing webfonts
- responsive.css in the WordPress should be prioritized
- How to change menu labels
- jQuery code not working when included in functions.php
- Moving code from theme header to functions.php
- Is the wp_enqueue method efficient?
- get_template_directory adding FTP root folders in urls
- Add meta tags to a custom header
- Enqueing External JS on the remote server JS
- child parent styles enqueue order
- How to make a cookie be on the whole site instead of being on a specific page/
- Custom functions for string data calculations
- Reliable way to add nonce to HTTP Header in WordPress?
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Enqueue assets from multiple directories using add_action/do_action
- How to change order inside foreach using wp_enqueue_script?
- Call a single function on two different methods with hooks
- Using Javascript On Page – Header and Footer Now Missing
- Enqueue sripts and styles only if function is called
- Load script and styles using an array of resources
- Chosen Select jquery Not Working in Plugin
- How can I print out a single stylesheet or javascript link?
- Adding Gravity Form With if(is_page) Is Not Working
- wp_enqueue_style conflict when using in different action hooks
- Warning: filemtime(): stat failed for wp_
- Dynamic Email Handler with ‘header (“Location: …’
- functions.php doesn’t load all custom theme assets
- WordPress generating Undefined Variable warning
- Unzip file in functions.php, and add it to cron
- Adding onload to body for certain pages
- Disclaimer that will show every refresh of the page
- Add Block Before Entry Title Using PHP
- Time Delay a URL Redirect for Specific Page
- Delete images from media library when user deletes an image from ACF Gallery
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- how to changes mobile menu toggle breakpoint in WordPress
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Get page permalink in contact form
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- How to display already created menus via php?
- Updating Metadata with Shortcode
- Grabbing Image name From Product Image Gallery
- Reject all malicious URL requests functions.php
- can’t load .po file in functions.php
- How to assign page id with array in page_scheduled_event
- Need help for some PHP code
- “pre_get_posts” orderby custom date field in different format?
- WP-Bakery – Add custom colors to buttons with template colors
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Can/should we delete wordpress cron jobs with no action?
- Adding an “Upgrade Subscription” button to an Elementor page
- Database entry removed on browser refresh, Ajax PHP jQuery
- WordPress User Meta value variable into Google Gauge Chart
- Add a Metabox checkbox to the Page Edit screen of wp-admin , which only certain roles can see and Makes only certain roles able to Edit said page
- Jetengine Forms – Media upload path
- Checkbox doesn’t save inside metabox
- A function to get the content of a page
- How to use Page link field with is_page()
- Using ACF Relationship field to set post type to draft or published status
- How to hide a child category and show his parent category
- How do I use an iFrame for my header in WordPress twenty seventeen?
- Display logged in user name and lastname on page
- Adding wp users ID into a link address from a DIVI modul
- How to Add a cutsom slug to my custom author role
- Execute function only for specific user roles
- How to send a php var to jQuery Ajax call with two different file
- WordPress can’t use ZipArchive
- Providin exception to WordPress wp_nav_menu Custom CSS Classes
- Change wordpress’ database data using ajax – how to get current user id?
- Woocommerce My acount page
- Woocommerce – Exclude variation attribute on specific variation
- Dynamically populate parameter in Gravity Forms using PHP
- How do I add a function to parent theme
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Why would the child theme load in the Customize preview, but not on the site itself?
- Are there any drawbacks on opening a session_start in functions.php and header.php?
- Store ajax data in PHP variable
- Advanced method to control cache of enqueued style/script
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- How a HTML form can trigger a PHP function?
- Dropdown category field inside repeatable metabox
- How to change basename url for wp-admin?
- Create shortcode for metabox gallery
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Retrieve alt text by referencing the img src
- How to exclude meta no index pages from wp_list_pages
- Cannot find the php_ini configuration file to find my error log to see why my code is not working