Alter Any Post Type Archive To Display Like the Blog
add_filter( 'wpex_is_blog_query', function( $bool ) { if ( is_post_type_archive( 'events' ) ) { $bool = true; // Make events post type archive render like blog posts } return $bool; } );
add_filter( 'wpex_is_blog_query', function( $bool ) { if ( is_post_type_archive( 'events' ) ) { $bool = true; // Make events post type archive render like blog posts } return $bool; } );
The Total theme has a custom excerpt function which bypasses the WordPress excerpt so that you can define how many words you want to display for your excerpts. The theme's excerpt function by default ignores the "read more" break so…
The following snippet can be used to add extra Google Font options or override the entire list of available Google font options available in the Customizer > Typography panel or exclusive Total theme elements.
NOTE: It's now possible to add the "vc_tta-o-non-responsive" classname to any row or column containing tabs to prevent the behavior.
Important: There is now a setting built-into the theme in the Customizer under the WooCommerce tab.
@media only screen and (max-width: 959px) { #site-header #site-logo { float: none; display: block; } } #mobile-menu { position: inherit; top: auto; right: auto; margin: 0; float: left; }
add_action( 'after_setup_theme', function() { remove_theme_support( 'yoast-seo-breadcrumbs' ); }, 20 );
/** * Append new query args to the social share url * Result in this example will return http://your-site.com/post-slug/?key=value * */ function my_alter_social_link( $url ) { return add_query_arg( array( 'key' => 'value', ), $url ); } add_filter( 'wpex_social_share_url', 'my_alter_social_link', 20…
// Changes your blog page header style to background image if a featured image exists add_filter( 'totaltheme/page/header/style', function( $style ) { if ( is_singular( 'post' ) && ! $style && has_post_thumbnail() ) { $style = 'background-image'; } return $style; }…
The following CSS can be used to give your header style one a full height so that your menu items are the same height as the header itself.