0
0
Wordpressframework~20 mins

Site identity and branding in Wordpress - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Site Identity Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
component_behavior
intermediate
2:00remaining
How does WordPress use the Site Title in themes?
In a typical WordPress theme, where does the Site Title appear by default?
AOnly in the footer section as plain text
BInside the sidebar widget area by default
CIn the header section, usually wrapped in an <h1> or <p> tag
DIt is not displayed anywhere unless manually added
Attempts:
2 left
💡 Hint
Think about where visitors first see the site name on most websites.
📝 Syntax
intermediate
2:00remaining
Which function outputs the Site Tagline in WordPress?
Select the correct WordPress function that prints the Site Tagline (description) in a theme template.
Abloginfo('description');
Bget_bloginfo('title');
Cthe_site_tagline();
Dsite_tagline();
Attempts:
2 left
💡 Hint
The function starts with 'bloginfo' and takes a parameter.
state_output
advanced
2:00remaining
What is the output of this code snippet in a WordPress theme?
Consider this PHP code in a WordPress theme header.php file:

<?php if ( get_bloginfo('name') ) : ?>
  <h1><?php bloginfo('name'); ?></h1>
<?php endif; ?>

What will be displayed if the Site Title is set to "My Blog"?
Wordpress
<?php if ( get_bloginfo('name') ) : ?>
  <h1><?php bloginfo('name'); ?></h1>
<?php endif; ?>
A<h1>My Blog</h1>
BMy Blog without any HTML tags
CNothing, because get_bloginfo() returns empty
DA PHP error because bloginfo() cannot be used inside if
Attempts:
2 left
💡 Hint
get_bloginfo('name') returns the Site Title string.
🔧 Debug
advanced
2:00remaining
Why does this WordPress code not display the Site Logo?
Given this code in a theme template:

<?php the_custom_logo(); ?>

The site has a logo set in the Customizer, but nothing shows on the page. What is the most likely reason?
Wordpress
<?php the_custom_logo(); ?>
AThe logo image file is missing from the media library
BThe theme does not support 'custom-logo' feature, so the logo won't display
Cthe_custom_logo() requires a parameter with the logo URL
Dthe_custom_logo() only works in the footer template
Attempts:
2 left
💡 Hint
Check if the theme declares support for custom logos.
🧠 Conceptual
expert
2:00remaining
How does WordPress handle site identity for multisite networks?
In a WordPress multisite network, which statement about Site Title and Tagline is true?
AOnly the main site can have a Site Title and Tagline; others inherit it
BThe network admin sets a single Site Title and Tagline for all sites
CSite Title and Tagline are shared but can be overridden by plugins
DEach site in the network has its own Site Title and Tagline settings
Attempts:
2 left
💡 Hint
Think about how multisite allows independent sites.