Remove The Header Logo
add_action( 'init', function() { remove_action( 'wpex_hook_header_inner', 'wpex_header_logo' ); } );
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' );
While Total includes many hooks and filters so you don't have to override most template files via a child theme if you do wish to do so you would normally copy and paste the template file to your child theme…
The following snippet can be used to remove all the Google Font options from the Customizer to slim things down. This is useful if you are using native fonts only like the System UI font to slim down the Customizer…
function myprefix_move_header_footer_out_of_boxed_layout() { // Remove header/footer remove_action( 'wpex_hook_wrap_top', 'wpex_header' ); remove_action( 'wpex_hook_wrap_bottom', 'wpex_footer' ); // Re-add header/footer add_action( 'wpex_outer_wrap_before', 'wpex_header', 9999 ); add_action( 'wpex_outer_wrap_after', 'wpex_footer' ); } add_action( 'init', 'myprefix_move_header_footer_out_of_boxed_layout' );