August 2017
Beginner
412 pages
10h 30m
English
Okay, let's move on to our index.php file and the things we can do inside of it. In the following section of the chapter, we're going to be altering specific lines of code from the original HTML structure.
First, we'll set up the <head></head> section of your HTML file. Let's start with charset and the device width parameter. Simply, here are the two lines to begin with right after the opening <head> tag:
<meta charset="<?php bloginfo('charset'); ?>"><meta name="viewport" content="width=device-width, initial-scale=1">
The first one holds the character set that your blog uses. The other defines the width of the viewport used. Here, it's set to the width of the device being used (this allows everyone to view the site correctly, ...
Read now
Unlock full access