Let's start by placing the markup for our logo image within the navbar-brand link. We'll find the markup for this in the header-top-navbar.php
file in the templates
folder:
header-top-navbar.php
file inside the templates
folder in your editor.<a class="navbar-brand" ...
<?php bloginfo('name'), ?>
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.png" width="120" alt="Bootstrappin'">
Now for the footer.
Our social icons should be working. The default Roots copyright line will be below them. Let's remove that—at least for the purposes of these exercise files—and place our site logo above the icons.
We'll do this in the footer template file as shown in the following steps:
footer.php
file in the template folder in your editor.<p>© <?php echo date('Y'), ?> <?php bloginfo('name'), ?></p>
[NEW LINE HERE ...] <?php dynamic_sidebar('sidebar-footer'), ?>
<p><a href="<?php echo home_url(); ?>/"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.png" width="80" alt="Bootstrappin'"></a></p>
We've employed the WordPress template tags for the home_url
link and for the templates
folder. I've wrapped it in a paragraph, but you could choose another element if desired.
Our design is nearly complete. But let's not forget our favicon and touch icon.