If the conditional workout from the previous part of the exercise is confusing, remember that you could also have just made another template part to be called from the SINGLE.PHP template file. But getting comfortable with conditions gives you a lot of power, so it’s definitely worth it to practice using them. Anyway, in this […]
Author: km
So we have constructed a front-page template that outputs our content in two defined loops rather than one “reverse-chronological” default loop. But when we test, we see that too much content is being output in each article. If we look at the screenshot on the page about the front-page template, we will see that we […]
Now let’s turn to the complex footer we have in the screenshot. This is actually quite easy. I have installed a highly-regarded FORMS plugin called Ninja Forms. That is why you see a FORMS section in the Dashboard (just below the COMMENTS menu item in the dashboard). Using a WordPress feature called Shortcodes, we will […]
Look at your home page. You will see the header and footer and sidebar area, hopefully well styled. Look at the rest of the content on the page. The default home page loop outputs the title, the posting date, all the content, the categories and the tags, etc. Each article is essentially unstyled, so the […]
In this exercise, we will make an Underscores-based WordPress site for the Imaginary Film Festival. IFF Home Page (click for full size) I am not going to cover every single styling component of the exercise. Please, however, style the site as close a possible to how it is done in the screenshots The text in this […]
Moving A WordPress Site
There are a number of scenarios under which you might need to move a WordPress installation. a changed domain changed hosting creating a testing environment moving a site created in a testing environment to a live server The easiest way to move a site is to use the Export / Import functionality available in the Tools section […]
Since posting the original exercise, I have made a few changes to the look of the page, so if you download the completed version, do not be surprised that some features are different from those described in the exercise. First, download the slim minified version of jQuery and add a link to it just before […]
Flex Table Sort Solution
In order to use the power of Flex for this exercise, it is very important to remember one thing: because Flexbox is all about the relationship between parent and child elements, we need the tbody to be included in this table. The “sort” will involve shuffling the order of the tr elements inside the tbody. […]
Multiple Loops in WordPress
About Custom Loops This will likely be the most complex topic we cover in this class, but knowing how to make multiple loops in a single template file gives you some amazing abilities. The default loop gives you posts in order of most recent to least recent. However, with custom loops, we can select from a […]
In this exercise you will make a Mobile-First layout. First, please download the starter files. Included with these files is a ScreenShots.pdf file. To view the screenshots adequately, open that file in Preview and go View > Zoom To Fit. You will edit the index.html file (and make a stylesheet file) to create a responsive […]