Bird
0
0

You added custom code to functions.php but the site shows a white screen. What is the most likely cause?

medium📝 Debug Q6 of 15
Wordpress - Theme Structure and Basics
You added custom code to functions.php but the site shows a white screen. What is the most likely cause?
AThe style.css file is empty
BMissing header.php file
CThe sidebar.php file is corrupted
DA PHP syntax error in functions.php
Step-by-Step Solution
Solution:
  1. Step 1: Identify common white screen cause

    White screen usually means a PHP error, often syntax error in functions.php.
  2. Step 2: Exclude other options

    Missing header.php or empty style.css won't cause white screen; corrupted sidebar.php affects sidebar only.
  3. Final Answer:

    A PHP syntax error in functions.php -> Option D
  4. Quick Check:

    White screen = PHP error in functions.php [OK]
Quick Trick: Check functions.php syntax if site shows white screen [OK]
Common Mistakes:
  • Blaming missing header.php for white screen
  • Assuming empty CSS causes white screen
  • Ignoring PHP errors in functions.php

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes