Skip to content

Display Shop Sidebar for WooCommerce Cart & Checkout

Display Shop Sidebar for WooCommerce Cart & Checkout

By default the theme uses the is_woocommerce() conditional for displaying the WooCommerce sidebar on the website. However, WooCommerce doesn't treat the cart/shop as actual WooCommerce pages so they will display the standard page or default sidebar instead of the WooCommerce…

Read more

Add a Show All Button to the WooCommerce Shop

// Insert a show all button below the products (change the hook to fit your needs) add_action( 'wpex_hook_content_bottom', function() { if ( empty( $_GET[ 'show_all' ] ) && ( wpex_is_woo_shop() || wpex_is_woo_tax() ) ) { echo 'Show All'; } }…

Read more

Add Search Results Count to Search Results Page

The following snippet will add a subheading to the search results page (subheadings display under the main title in side the page header title area) in the following format: "Displaying results 1-10 out of 573 for {{query}}".

Read more

Full Width Aligned Images on Mobile

The following CSS will make any images set to left/right align full width on mobile. This will apply to the entire site so make sure to only use it if you really want to force all images to 100% on…

Read more

Remove the Yoast Breadcrumbs title

Yoast doesn't have a setting to remove the title from the end of the breadcrumbs but you can use their "wpseo_breadcrumb_single_link" filter to remove it.

Read more

Display Avatars Over Entry Image (via custom overlay)

This sample code adds a new "Avatar" overlay style that you can choose when selecting an image overlay so you can display the post avatar over the entry image. Note, that the snippet contains both PHP and CSS code so…

Read more
Back To Top