August 2017
Beginner
412 pages
10h 30m
English
It's time to start adding some content. Here, we'll take care of things such as displaying a link to the blog's home page, displaying the blog's title, displaying the tagline, and displaying the main navigation. All these operations are pretty simple, so let's just take a look at the lines of code that take care of them. Then, we'll put these lines of code in just the right place within our HTML structure.
First, we have the code that displays the site's main URL:
<?php echo esc_url(home_url('/')); ?>
Next, the code that displays the site's title is as follows:
<?php bloginfo('name'); ?>
Here's the code for displaying the tagline:
<?php bloginfo('description'); ?>
The preceding two lines pull information from where you ...
Read now
Unlock full access