Categories
Uncategorized

WP Block Theme Creation Exercise (FacePlace 2027) Backup Copy with Langara Instructions

In this exercise, you will create a WordPress website called Face Place.

About the Sample Content: Regular Posts

  • All required plugins are already installed: they are Advanced Custom Fields, Custom Post Type UI, Meta Field Block, and Create Block Theme.
  • There are 24 Regular Posts
  • Each regular post has a feature image and lorem text content.
  • Regular posts are categorized either male or female. All posts are also in the male & female category.
  • Each regular post has custom fields which contain details about the feature image.

About the Sample Content: Custom Post Types

  • There are two Custom Post Types
  • The Photographer CPT has one taxonomy: Photographer Type
  • The Photographer Type taxonomy has two values: Fashion or Portrait
  • The Quotations CPT is not currently used in this exercise.
  • The Quotations CPT does not have any kind of taxonomy attached to it.
  • Output of the Custom Fields will require the Meta Field Block plugin, which is installed in the starter files.

NOTE: the Ashley Southine Demo font that we will use in this exercise was found at dafont.com.

Download it here.

The company that created it has confirmed that using it in class, for education purposes, is within the range of usage permitted by the license.

If you wish to use it for commercial purposes, you will need to purchase a license for it. Details can be found at https://mjbletters.com/license/

Exercise Instructions

  • Install the sample content.
  • Using Create Block Theme, create a new theme
  • Call the theme Faceplace-YourName
  • Put your first name and last name in the AUTHOR field.
  • Make sure to save changes to the theme before handing your site in. 
  • Do not install any more plugins.
  • Do not update any plugins, or WordPress itself, unless I ask you to.
  • Do not make a functions.php file or use any original or borrowed php.
  • If you want to do CSS changes, feel free to “borrow” code from google, Claude, ChatGPT, or any other source.
  • For efficiency, minimize the number of templates you use.
    Use the WordPress Template Hierarchy wisely.
    Here’s a simplified diagram of the template hierarchy.
  • You might need small amounts of CSS for some tasks, but most things in the exercise can be done in the Dashboard.

You can, and should, use the Internet or notes for the exercise.

Typography (5 pts)

  • Install the Ashley Southine Demo font
  • Site title and most Post Titles use Ashley Southine Demo font.
  • On Single Views, Post Title uses System UI (aka System Font) font.
  • All other content uses the System UI (aka System Font) font.
  • Study screenshots for relative sizing and weights
  • All hovered links change to pink.

Header on Home & Archives (10 pts)

  • The following details apply to the Header only on Site Home and Archives.
  • Header looks exactly the same on Site Home and Archives.
  • This header stacks at all sizes.
  • Site Logo Width is 90px.
  • Site Title grows with browser width.
  • Site Description color: #ff8080.
  • Site logo and site title link to site home
  • Site logo and site description do not scale
  • See screenshots and movie

Site Home and Archives Layout (20 pts)

  • Site Home and Archives look almost exactly the same.
  • Archives have page titles (tag or taxonomy), which the Site Home does not.
  • The Site Home and the Archives have a loop outputting the default content for each.

In other words, this site does not have a static front page.

  • Each post’s content and custom fields are output in a card form (described below)
  • When a Details block is open, adjacent cards appear to be the same height. Note the alignments: there are no uneven “gaps”.
  • When there is enough room, another column is added to the posts area, but on larger screens columns have a minimum width of 620px.
    NOTE: this is done most easily in the editor block settings, not via CSS.
  • Pagination is centered, with Previous Page and Next Page as the link text. There are no numbers in the pagination.
  • See screenshots.
  • Note: the Photographer CPT does not have custom fields, which means that the Details block is not needed there. If you wish, you may use CSS to hide it on taxonomy archives.

Individual Cards (25 pts)

  • Each card will display a feature image, a title, an excerpt of 50 words, a “learn more” link to the single view, and a DETAILS block labeled Photo Details
  • The DETAILS block contains a TABLE with the Custom Fields that attached to the Post: a row for Photographer, a row for Camera, and a row for License.
  • Note: use a regular TABLE block for this. You do not need the TABLE (ADV) block.
  • Below the table, but still within the DETAILS block, is a button with a link to the Photographer’s website. This URL also comes from a custom field. Make sure that the link works (it will take you to an external website).
  • Note again: in the taxonomy archives, the DETAILS block does not appear. Using CSS to hide it is fine.
  • God is in the details: study the screenshots for appearance and styling.

Header on Single Views (5 pts)

  • Site Icon Width in Single View Headers is 60px.
  • Both site icon and site title link to Site Home.
  • Header content is centered in a row.
  • See screenshots

Single Views (15 pts)

  • Post Title uses System UI (aka System Default) font.
  • Post Title sits in the center of Feature Image
  • Content
  • Tag
  • Next & Previous, with Post name on each.
  • Pagination is in a row, at opposite ends.
  • See screenshots for Styling, Font Sizing, Alignments, etc.

Footer (20 pts)

  • The footer looks the same everywhere on site: home, archives, single
  • All the content in the footer stacks
  • Faces section: links to male and female archives
  • Photographers section: links to photographer types
  • Proudly powered by WordPress
  • Site by YourName YourStudentNumber
  • Site Logo, linked to site home
  • Site logo width in footer: 60px.
  • The only responsive part here: each of the “Menu Labels” scales with browser width.

Bonus Section (20% bonus)

  • As noted earlier, the site has a Quotation Custom Post Type.
  • It has a number of Custom Fields attached
  • For a 20% bonus, perfectly output (in the footer) at every page load a single, random quotation, styled as in the screenshot.
  • Consult the Kadence documentation, or google, to work out how to do this.
  • CSS Hint: text-wrap: balance.
  • See screenshots
  • Remember that you can use the Internet…

When You Are Done

  • Make sure that you SAVE CHANGES to your theme.
    If you do not do that, I will not see your work.
  • Choose EXPORT ZIP from the Create Block Theme area.
  • If you named the theme correctly at the beginning of the exam, the ZIP file name should have YourName in it.
  • Upload the theme to Brightspace.

Figure 1: Site Home (quotation section in footer is bonus)

Figure 2: Archive Layout (quotation section in footer is bonus)

Figure 3: Taxonomy Archive (quotation section in footer is bonus)

Figure 4: Home & Archive Card, Details Block  Closed

Figure 5: Home & Archive Card, Details Block Open

Figure 6: Home and Archive, Adjacent Cards, Details Open and Closed

Figure 7: Home & Archive Card, Small Screen Size, Details Block Open

Figure 8: Single View, Large Screen (quotation section in footer is bonus)

Figure 9: Single View, Small Screen

Figure 10: Bonus, Quotation wrapping, with text balance via CSS

Figure 11: Bonus, Shorter Quotation (not wrapping)

Figure 12: Site Home and Archive, Small Screen
(note: 7 articles removed for screenshot)

Figure 13 Home and Archive Card Detail, Small Screen