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
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- Displaying Logged-In User Name in WordPress Menu
- Autoloading in Child Theme
- Set media upload attachment link to none and hide it in WP v3.5
- How to set custom cookies before output
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- How to add default images into theme customizer image control?
- Add custom HTML to posts page
- Successful or Error Message after running mysql code in functions.php
- How can one utilize a variable as a callback function name for add_settings_field
- wp_enqueue_style with style.php and WordPress functions
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- Count the number of times the search form template gets included on a page
- PHP code inside shortcodes
- Adding Default Settings to Theme My Login plugin
- function to assign user role based on a field from usermeta
- WordPress Gravatar filter is removing my custom attributes
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- “imagejpeg” function is not working in wordpress
- Remove echo from shortcode
- Copyright info change – Corporate Plus Theme PHP [closed]
- Inject class in body when particular page template is used
- How to list posts from a plugin taxonomy?
- wp_force_remove_style’ not found
- Filtering a function’ output for a new continued function
- Displaying text if post was within 5 hours
- Adding a tag_ID column into Categories inside the admin dashboard?
- My website is not showing Footer section
- Theme JS is available but theme CSS isn’t
- Change header on pages displaying taxonomy items
- Automatically Add Page Links to Nav Menu
- blank white page when post/update/change option etc
- Must filter functions receive all arguments passed to them?
- How to Display a List of Child Pages For a Parent Page in WordPress
- Displaying Slider in Front Page (home) using Customizr Theme
- How to add PHP pagination to wordpress
- Taxonomy term description with style, only if the description exists?
- How to change the author box selection on a post to a custom taxonomy
- How to send a php var to jQuery Ajax call with two different file
- copy fields value to another field
- not outputting medium size image URL
- Get parent category name when only child category is applied to a product
- Best way to use variables in multiple functions?
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Modifying child theme’s header
- Before & After Content – After Content directly below Before Content when using require_once
- Cannot fetch posts with certain ‘product_cat’. WP_Query is empty
- Detect what link user clicks and Redirect to a specific page for logged in users only
- How fix error in the WordPress loop?
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- ISOTOPE – Missing/Invalid Arguement Get Terms
- Showing all post from all post type in admin backstage
- Pagination not displaying
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- Shortcode to include PHP file, pass various parameters to include?
- Why can’t I include echo inside a variable? [closed]
- Custom Admin Menu Report for Specific User ID
- how to create twitter card without plugin in wordpress website?