The Genesis framework allows you to apply a custom body style to any individual page or post, but what if you want to apply a blanket style to a group of pages, e.g. all archives, posts, pages, specific pages by slug, etc. Just place this code in your functions.php file and adapt to suit. This works for non-Genesis sites too.
Show quantity selector next to add to cart buttons on product archive pages in WooCommerce
WooCommerce archive pages can have an ‘add to cart’ button by default, but this doesn’t usually include a quantity selector. You have to go to the product page for that. This code add the selector to your archive pages, so users don’t have to click through the the product details if they don’t want to.
Add the function ‘is_child’, for conditional to check if a WordPress page is a child of another page
I recently had to use some conditional logic to restrict some After Header content to appear only on pages that are the child pages of a particular parent page. I found the solution over at bavotasan.com. The code to place in your functions.php file is here:
Reposition the entry meta from below to above post on a WordPress site built with the Genesis framework
If your Genesis child theme places the entry meta at the bottom of every post when you’d really prefer it to be at the top, here’s how to move it.
Stop related posts showing on WordPress custom post types (including WooCommerce product pages)
Following on from my earlier post on how to disable the related products section on WooCommerce single product pages , this is an update which will stop related posts from showing on other Custom Post Types, as well as WooCommerce.
Add support for new WooCommerce gallery features
WooCommerce 3.0+ includes some additional gallery features. If you’re upgrading your site, you might find that this code fixes things for you.
