Removing All Custom Widgets
// Removes all custom Total widgets add_filter( 'wpex_custom_widgets', '__return_false' );
// Removes all custom Total widgets add_filter( 'wpex_custom_widgets', '__return_false' );
// Disables the search in the menu when a custom menu is being used on the page add_filter( 'totaltheme/header/menu/search/is_supported', function( $check ) { if ( get_post_meta( get_the_ID(), 'wpex_custom_menu', true ) ) { return false; } return $check; } );
/** * Sample snippet showing how to alter the default readmore button styles * Change the filter where it says "blog" to match your custom post type. Example: "wpex_cpt_entry_button_args" * * You can of course also alter the button style…
The wpex_page_header_title_args filter can be used to alter the main page header title html tag, string (text) or the schema markup. Here is an example of altering all three values but you only should alter only the value you need…
/* This is for blog entry archives only, the Blog Grid VC module would use different CSS */ body .blog-entry { text-align: center; } body .blog-entry .meta li { display: inline-block; float: none; } body .blog-entry .wpex-social-share.position-horizontal li { display:…
body .wpex-social-share .wpex-label { display: none; }
function myprefix_vcex_grid_default_title_tag( $title_tag, $atts ) { // You can just return your preferred tag $title_tag = 'h3'; // Or you can check the post type using the atts var if ( isset( $atts['post_type'] ) && 'portfolio' == $atts['post_type'] ) {…
/** * Alter the blog entry blocks via filter. * Available Blocks: featured_media, title, meta, excerpt_content, readmore. */ add_filter( 'totaltheme/blog/entry_blocks', function( $blocks ) { // Alter for "web-design" category if ( is_category( 'web-design' ) ) { $blocks = array( 'title',…
function my_wpex_portfolio_wrap_classes( $classes ) { $classes[] = 'gap-40'; // Add a 40 pixel gab between items return $classes; } add_filter( 'wpex_portfolio_wrap_classes', 'my_wpex_portfolio_wrap_classes' );
The following CSS can be used to modify the default WooCommerce gallery and summary columns. This CSS should work with basically any theme and is not exclusive to Total.