Skip to content

Different Body Font Family for Different Languages

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

Add New Category “Block” to Blog Entries

// Add a new custom block option to the entry blocks in the Customizer add_filter( 'totaltheme/blog/entry_blocks/choices', function( $blocks ) { $blocks['custom-category'] = __( 'Category', 'wpex' ); return $blocks; } ); add_filter( 'totaltheme/blog/entry_blocks', function( $blocks ) { if ( isset( $blocks['custom-category']…

Read more
Back To Top