Lecture
Today we summarize the styling and touch on an important question - how to properly divide the index.php file into several small files. At the beginning of the lesson you will need a style.css file . Next, you will work with index.php , and also create several new files. Probably thinking “well, is it really the final soon?” =) That is, we have almost finished the basic course!
Discover everything you need and start.
Add padding: 10px to the footer div tag. Hope you remember how to add padding ? This time, I'm not writing code anymore, hoping for your memory ;-)
Assign the height of the 18px string to all <p> footer tags via #footer p {} .
Today we are done with style.css .
In the index.php file, replace the highlighted code that you copied with the following:
one | <?php get_header(); ?> |
This is a special WordPress function that is responsible for including the header.php file, instead of using <? Php include (TEMPLATEPATH. '/Header.php'); ?> .
Save and refresh browsers. You should not see any changes. If the topic looks somehow wrong after you made a change, then something is wrong.
Step 4 is almost the same as the previous one. This time:
And again you should not see a change.
This needs to be done with each new WordPress theme to ensure optimal and proper structure of the theme.
Sign in and the lectures you have studied will be marked in this list.
Choose a course
Comments