About Custom Loops This will be one of the more 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 […]
Author: km
Icon Fonts with WP_Nav_Menu()
HIDING THE LINK TEXT:With wp_nav_menu, you can specify content to go before and after each link in the menu. Here “link_before” and “link_after” are being used to wrap the link text in a span that hides it while still remaining accessible. INSERTING THE ICONS:Then we can use CSS BEFORE pseudo-class selectors in order to inject […]
The due date of the combined 4835 + 4840 final assignment is the day of your team presentation. The project will be a website promoting or supporting your PWA project. On the same day that you present your PWA, your team will also present this website. Here is a discussion of some outstanding previous student […]
First download these files: DTN Magazine Layout If inside the downloaded folder is a file called Instructions, delete it. It was for an older version of the exercise. Your Task Inside the downloaded content is a folder of screenshots. Your job here is to make the page look as close as possible to the layouts […]
What To Do NOTE: if this is a regular weekly exercise, the mark is out of 1, as usual. Consider the questions identified as “bonus” to be part of the exercise (and not for bonus marks). The marks listed below are for if this is an exam. Video Demonstration Please ignore the video in the […]
Please download the starter files and set them up as a new project in the editor of your choice. In this exercise, you will make a single-page responsive design. You can definitely use the Internet or your notes. If this is a test, you may not talk to anyone other than me or the Instructional […]
Enqueuing for Scripts Enqueueing scripts (or local stylesheets), it is a bit more complicated, but it’s learnable. Underneath the last wp_enqueue_style function, type wp_enqueue and select wp_enqueue_script from the menu that shows up (thank you, WordPress Snippets extension). The following helpful boilerplate is output, showing us what arguments are expected by the function: The values […]
The verb to enqueue comes from the French language. It means to put something into a lineup. In WordPress the wp_enqueue_style() and wp_enqueue_script() functions are used to manage the loading of external resources like scripts and stylesheets. Why do we do things this way? Imagine if you have a theme that requires a dependency (some […]
For this exercise, please download and install this Duplicator archive package into a new empty database. Installed with this package is a plugin called Show Current Template. That will add information on the ADMIN bar when you’re logged in and viewing pages in the browser, showing what template files are involved in the creation of the […]
Introduction to the Functions File A very important file in any WordPress theme is functions.php. In it, we typically do things like the following: enable theme feature support, like feature images, custom logos, block editor styles, etc enable certain gutenberg block features such as wide alignment or full alignment, etc notify (register) WordPress about how many […]