Remove Portfolio Category and Tag Descriptions
add_filter( 'totaltheme/page/header/has_subheading', function( $check ) { if ( is_tax( 'portfolio_category' ) || is_tax( 'portfolio_tag' ) ) { $check = false; } return $check; } );
add_filter( 'totaltheme/page/header/has_subheading', function( $check ) { if ( is_tax( 'portfolio_category' ) || is_tax( 'portfolio_tag' ) ) { $check = false; } return $check; } );
The following snippet can be used to alter the subheading on the search results page.
Important: In Total 5.3+ you can now choose your header menu dropdown method (superfish, CSS hover or click) so you don't need this code anymore, instead you can simply select a different dropdown style then the default.
add_action( 'init', function() { remove_action( 'wpex_hook_header_inner', 'wpex_header_logo' ); } );
Important: This snippet is only for older theme versions below Total 3.6.0
This isn't really recommended but if you have used the old deprecated tabs on your site a lot and wish to continue using them without seeing the orange deprecated notice it can be removed easily.
function my_portfolio_related_entry_classes( $classes ) { if ( is_singular( 'portfolio' ) && in_array( 'loop-related', $classes ) ) { unset( $classes['col'] ); if ( ( $key = array_search( 'col', $classes ) ) !== false ) { unset( $classes[$key] ); } $classes[] =…
function myprefix_comments_title() { return 'Your Custom Text'; } add_filter( 'wpex_comments_title', 'myprefix_comments_title' );
This example snippet shows you how you can add a button to the page header on your portfolio posts that links back to the main portfolio page. You can of course do the same for any post type and after…
/** * Replace theme social share * * @see partials/social-share.php */ function myprefix_wpex_custom_social_share() { return '[wp_social_sharing]'; } add_filter( 'wpex_custom_social_share', 'myprefix_wpex_custom_social_share' );