Remove “Shop” From The Breadcrumbs
// Remove shop from breadcrumbs trail function my_remove_shop_from_breadcrumbs( $trail ) { unset( $trail['shop'] ); return $trail; } add_filter( 'wpex_breadcrumbs_trail', 'my_remove_shop_from_breadcrumbs', 20 );
// Remove shop from breadcrumbs trail function my_remove_shop_from_breadcrumbs( $trail ) { unset( $trail['shop'] ); return $trail; } add_filter( 'wpex_breadcrumbs_trail', 'my_remove_shop_from_breadcrumbs', 20 );
// Enable Social Sharing On Custom Post Types add_filter( 'wpex_has_social_share', function( $bool ) { if ( is_singular( 'YOUR_POST_TYPE_NAME' ) ) { $bool = true; } return $bool; }, 40 );
// Disabled by default for several reasons but can be enabled like such function my_woo_product_slider() { return true; } add_filter( 'wpex_woo_product_slider', 'my_woo_product_slider' );
// IMPORTANT: Use this function to clear your RSS cache so you can see your changes, then REMOVE it function prefix_set_feed_cache_time( $seconds ) { return 0; } add_filter( 'wp_feed_cache_transient_lifetime' , 'prefix_set_feed_cache_time' ); // Custom RSS feed function my_custom_rss_feed( $content )…
// Add more elements to the accent color backgrounds function my_accent_backgrounds( $elements ) { $elements[] = '.your-custom-class'; return $elements; } add_filter( 'wpex_accent_backgrounds', 'my_accent_backgrounds' ); // Add more elements to the accent color borders function my_accent_borders( $elements ) { $elements[] =…
add_filter( 'wpex_blog_single_media_position', function() { return 'above'; } );
// Expand The "Full-Width Media" For Blog Posts Across The Whole Screen (by switching hooks) add_action( 'init', function() { remove_action( 'wpex_hook_primary_before', 'wpex_blog_single_media_above' ); add_action( 'wpex_hook_main_top', 'wpex_blog_single_media_above' ); } );
/** * Change Post Series Archive Entry Style * Available options: large-image-entry-style, thumbnail-entry-style, grid-entry-style */ function my_post_series_entry_style( $style ) { if ( is_tax( 'post_series' ) ) return 'grid-entry-style'; return $style; } add_filter( 'wpex_blog_style', 'my_post_series_entry_style' ); add_filter( 'wpex_blog_entry_style', 'my_post_series_entry_style' );
// Change Post Series Archive Layout function my_alter_post_series_layout( $layout ) { if ( is_tax( 'post_series' ) ) { return 'full-width'; } return $layout; } add_filter( 'wpex_post_layout_class', 'my_alter_post_series_layout' );
The following snippet will show you how to add a custom block to your staff layout which you can enable in the Customizer, however, did you know you can build custom templates via the WordPress admin?