December 2017
Beginner
458 pages
7h 52m
English
Now, we will split our index.php file into a header and footer file. Inside the photogenik folder, we will create two new files called header.php and footer.php.
Let's figure out what we need to put in the header.php file. We will add the following code from our index.php file into the header.php file:
<!DOCTYPE html><html><head> <title>PhotoGenik</title> <meta charset="<?php bloginfor('charset'); ?>"> <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"> <?php wp_head(); ?></head><body <?php body_class(); ?>> <header class="w3-container w3-teal"> <div class="w3-row"> <div class="w3-col m9 l9"> <h1><?php bloginfo('name'); ?></h1> ...Read now
Unlock full access