Categories
WordPress

Yet Another WordPress Task: Spotify Embed

For the first part of this task, figure out how to embed this Spotify playlist in one of your posts: That’s relatively easy. So let’s make it a little harder. First, figure out how to put a thought for the day in the top of your site sidebar. Then build on what you learned doing that […]

Categories
WordPress WordPress Templates

Useful WordPress Snippets: Gravatars

AUTHORS To display author name as a link to the posts by that author:<?php the_author_posts_link() ?> To display author name, non-linked:<?php the_author(); ?> To GET an AVATAR for your author, sized to 96px by 96px<?php echo get_avatar( get_the_author_meta(’email’), ’96’ ); ?> To GET an AVATAR for your author, wrapped in a link to the AUTHOR […]

Categories
WordPress

WordPress Test—PedalMania

In this exercise, you will make a responsive WordPress-based site about guitar pedals called PedalMania. You can use any resource: the internet, your notes, past work. You may not talk. You will use the Underscores starter theme. Please download the sample content.  Set up a new MAMP project with an underscores theme, import the images, […]

Categories
WordPress

WordPress Template Tags Lab Exercise

If you need help with any part of this exercise, consult the WordPress Codex documentation on template tags: https://codex.wordpress.org/Template_Tags REVIEW TASKS Make a new WordPress site in a testing environment. Download the sample content.  Into that new site, import the content. If you’re not at Langara, click “Import Attachments.” If you are at Langara, you […]

Categories
WordPress

WordPress Theme & Plugin Exercise

Set Up A New Site Install a new MAMP-based WordPress site, in a folder called jazz-icons. Give the site a title of Jazz Icons and a tagline of The Giants of Jazz. Install the ZeeBizzCard theme. Import Some Content Download the sample content. In the zip file you download will find a WordPress export file. Import that content […]

Categories
WordPress

Widgetizing A Theme

If you’re using a theme that doesn’t support widgets, you can get it to do so by adding some code to functions.php and then adding calls to the dynamic sidebar in any template file. Widgetizing the HTML5Reset Starter Theme In its current incarnation, the html5reset wordpress theme’s widget area isn’t working, but the code can […]

Categories
WordPress

WordPress Templates Exercise

Preliminary Stuff In a MAMP Testing Enviroment, install a fresh copy of WordPress. In Dashboard < Settings, make the name of your site Jazz Icons and the description to the best players. Install the HTML5Reset WordPress Starter Theme. Change the name of the starter theme folder to firstnamelastnametest, no spaces. Edit the required file to […]

Categories
WordPress

The WordPress Template Hierarchy

The video below explains one of the most important concepts in WordPress theme development: the template hierarchy. Specifically, if you are making a theme, it’s important to know which of the theme files will actually generate your content. The diagram used in the video is available in the WordPress codex, along with some excellent examples: […]

Categories
WordPress

WordPress Lab Exercise: Users, Roles, Gravatars

In a new WordPress installation, we will explore Users, User Roles, Gravatars, Comments, Spam Solutions, and more. In this exercise, we’re going to use a number of features that require a WordPress.com account. This account is different from that for your own self-hosted WordPress site. So if you don’t have a WordPress.com account, please go sign […]

Categories
WordPress

Turning off commenting completely

To completely turn off commenting on an existing site, do the following: STEP ONE: Macro Level Go to the Dashboard, then Settings, then Discussion. Turn off both check marks in “Email me whenever”. In the same section, turn off all three boxes in “Default Article Settings.” You could even turn on “Users must be registered […]