Complete the code to set the site title in WordPress theme.
<?php bloginfo('[1]'); ?>
The bloginfo('name') function outputs the site title set in WordPress settings.
Complete the code to display the site tagline in WordPress theme.
<?php bloginfo('[1]'); ?>
The bloginfo('description') function outputs the site tagline or slogan.
Fix the error in the code to properly display the site logo in WordPress theme.
<?php the_custom_logo(); [1] ?>the_custom_logo() and get_custom_logo() causes duplicate output.bloginfo('logo') is invalid; no such parameter exists.The function get_custom_logo() returns the logo HTML, but does not echo it. the_custom_logo() echoes it directly. Calling both causes an error. Use only the_custom_logo() or echo get_custom_logo();.
Fill both blanks to create a site title link to the homepage in WordPress theme.
<a href="[1]" title="[2]">My Site</a>
get_permalink() links to the current page, not homepage.bloginfo('description') for title shows tagline, not site name.The link should point to the homepage URL using home_url('/'). The title attribute should show the site name using bloginfo('name').
Fill all three blanks to create a site branding section with logo, title, and tagline in WordPress theme.
<div class="site-branding"> [1] <h1 class="site-title"><?php [2] ?></h1> <p class="site-description"><?php [3] ?></p> </div>
get_custom_logo(); alone does not output the logo.The logo is displayed with the_custom_logo();. The site title uses bloginfo('name');. The tagline uses bloginfo('description');.