Categories
WordPress Templates

WordPress Templating: WordPress Methods for Data Security

For this demonstration, please install this duplicator archive package. Be sure to make yourself a new admin user account as part of this process. This is a variation on The Eatery exercise, with two custom post types: meal_menu and staff_member. In class, we’ll go through a few examples to show ways we can make our […]

Categories
WordPress WordPress Templates

Underscores Menu Exercise pt 3: Enqueuing Scripts

Other Values If enqueueing scripts (or local stylesheets), it is a bit more complicated, but it’s learnable. All URLs in WordPress are absolute, not relative, so when the theme is installed at a new domain, WordPress needs to figure out the path to resources, starting with the https://domain.com/ part. If you look at the script […]

Categories
WordPress Templates

WordPress Bare Bones Theming Exercise: Common Template Tags & Get Template Part

When we ended part 1 of this exercise, we saw a bunch of posts output to the screen. In this part of the exercise, we are going to edit our template files in order to grab more information from the site database and output it in appropriate places in the page generation process. Header.php First, […]

Categories
WordPress Templates

WordPress Bare Bones Theming Exercise

This exercise will demonstrate a number of important WordPress features, including the WordPress template hierarchy common template tags the loop conditions in WordPress get_template_part We will take a simplified approach, in order to get the broadest sense of how WordPress themes work and not get bogged down in too many details. Some Sample Content First […]

Categories
WordPress Templates

Jazz Icons 2018

Please download the Duplicator archive for this exercise, then download the screenshots package. The Duplicator archive contains all the site content, including the menus. It also includes an UNDERSCORES starter theme with two modifications: Post thumbnails will already have links to their respective posts (you will still need to put the_post_thumbnail() into the appropriate theme […]

Categories
WordPress Templates

WordPress: Film Festival Site: Remaining Tasks

Hopefully this exercise has given you some ideas about how to build WordPress templates. A number of things, of course, remain to do. There is a social menu, so please figure out how to add font-awesome icon fonts to each of the social links, while hiding the link text with underscores’ screen-reader-text class. The wordpress […]

Categories
WordPress Templates

WordPress Film Festival Site: Custom Fields for Single Post Views

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 […]

Categories
WordPress WordPress Templates

WordPress Film Festival Site: Template-Parts and WP Conditions

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 […]

Categories
WordPress Templates

WordPress: Film Festival Site: do_shortcode()

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 […]

Categories
WordPress Templates

WordPress: Film Festival Site Home Page

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 […]