Themes

ACF Fields added to the template outside of the_content() will have this problem.

Read More

Customizing the Theme you regularly use help streamline time spent developing!

update_option( 'thumbnail_size_w', 300 );
update_option( 'thumbnail_size_h', 300 );

update_option( 'medium_size_w', 600 );
update_option( 'medium_size_h', 600 );

update_option( 'large_size_w', 1150 );
update_option( 'large_size_h', 1150 );
Read More
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
Read More

Works in single and page templates. Add at the top of the file.

<?php
/*
Template Name: Full-width page layout
Template Post Type: post, page, custom-post-type
*/

Source.

Read More

By default Shopify points to the /accounts page when Customers login. This function will redirect them to a page of your choice.

Read More

Setup a stylesheet for the default login screen, and update the heading url.

Read More

This affects all post types. Wrap in conditions to reduce appearance. Featured Image column will appear last.

Read More

I really enjoyed customizing this. Check out more from the author of this snippet at the link below.

Read More

These are some of the functions I use in my custom themes to setup my own defaults in Gutenberg.

Read More

If files within /woocommerce are being ignored, add support for Woocommerce as follows:

Read More

Place the below in your functions.php to add your own custom font options to the core Paragraph Block.

Read More

Working with Gutenberg, I’ve learned how to build custom blocks to show content inline on a page, but I thought there could be an easier way that building a block, or a custom template.

Read More

Fonts will render differently across browsers, and sometimes even when different colours and background are being used.

Read More

Below is an example of the_post_navigation customized to include an image and custom text for previous and next.

Add this snippet to your functions file, link to your images, and then call it where you would like the_post_navigation to appear.

Read More

Create a custom Date Archive using the following snippet.

Read More

Change the default number of words returned by the_excerpt() using this function:

Read More

Sometimes Custom Post Types are built to organize and filter information, such as creating a Research archive or a Staff directory.  That content is meant to be seen on the front end in the single.php template.

However, when creating a Custom Post Type for a rotating Banner, or a single page listing all of your Testimonials, the single.php template is moot.

Read More

Use this function if you find yourself having to force your CSS styles with !important in your Child Theme.

Read More

By default, Category templates bring in the words “Category Archives:” ahead of the category name with most themes, and this isn’t always ideal. When theming Archives separately from Category pages, it’s necessary to target the title of Category to edit the default text.

Read More

Working with Custom Post Types can be tricky. Make it easier by using templates to display the taxonomy archive similar to the page.php layout.

Read More
katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.