Bird
0
0

After adding add_theme_support('custom-logo'); in your theme's functions.php, the logo still does not display on the site. What is the most probable reason?

medium📝 Debug Q6 of 15
Wordpress - Themes and Appearance
After adding add_theme_support('custom-logo'); in your theme's functions.php, the logo still does not display on the site. What is the most probable reason?
AThe logo image file is too large and not optimized
BThe theme's template files do not include the <code>the_custom_logo()</code> function call
CThe WordPress version does not support custom logos
DThe site title and tagline are empty
Step-by-Step Solution
Solution:
  1. Step 1: Understand add_theme_support

    Adding add_theme_support('custom-logo') enables the feature but does not display the logo automatically.
  2. Step 2: Check template usage

    The theme must call the_custom_logo() in its template files (usually header.php) to output the logo.
  3. Step 3: Exclude other options

    Logo size or WordPress version issues would not prevent display if the function is called; empty title/tagline does not affect logo display.
  4. Final Answer:

    The theme's template files do not include the the_custom_logo() function call -> Option B
  5. Quick Check:

    Enable support + call function to display logo [OK]
Quick Trick: Support logo + call the_custom_logo() to show [OK]
Common Mistakes:
  • Assuming add_theme_support alone displays the logo
  • Blaming logo size or WordPress version first
  • Confusing logo display with site title/tagline content

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes