Bird
0
0

Which of the following is the correct way to add a site logo using WordPress Customizer PHP code?

easy📝 Syntax Q12 of 15
Wordpress - Themes and Appearance
Which of the following is the correct way to add a site logo using WordPress Customizer PHP code?
Aadd_theme_support('custom-logo');
Bregister_logo('custom-logo');
Cadd_logo_support();
Denable_logo_feature();
Step-by-Step Solution
Solution:
  1. Step 1: Recall WordPress theme support functions

    WordPress uses add_theme_support('custom-logo') to enable logo support in themes.
  2. Step 2: Check other options

    Functions like register_logo, add_logo_support, or enable_logo_feature do not exist in WordPress core.
  3. Final Answer:

    add_theme_support('custom-logo'); -> Option A
  4. Quick Check:

    Enable logo with add_theme_support('custom-logo') [OK]
Quick Trick: Use add_theme_support('custom-logo') to enable logo [OK]
Common Mistakes:
  • Using non-existent functions
  • Confusing logo registration with theme support
  • Forgetting to add theme support before using logo

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes