ACF Fields added to the template outside of the_content() will have this problem.
Read MoreCustomizing 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
By default Shopify points to the /accounts page when Customers login. This function will redirect them to a page of your choice.
Read MoreSetup a stylesheet for the default login screen, and update the heading url.
Read MoreThis affects all post types. Wrap in conditions to reduce appearance. Featured Image column will appear last.
Read MoreI really enjoyed customizing this. Check out more from the author of this snippet at the link below.
Read MoreThese are some of the functions I use in my custom themes to setup my own defaults in Gutenberg.
Read MoreIf files within /woocommerce are being ignored, add support for Woocommerce as follows:
Read MorePlace the below in your functions.php to add your own custom font options to the core Paragraph Block.
Read MoreWorking 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 MoreFonts will render differently across browsers, and sometimes even when different colours and background are being used.
Read MoreBelow 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 MoreCreate a custom Date Archive using the following snippet.
Read MoreChange the default number of words returned by the_excerpt() using this function:
Read MoreSometimes 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 MoreUse this function if you find yourself having to force your CSS styles with !important in your Child Theme.
Read MoreBy 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 MoreWorking 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