Skip to content

How To Remove Script Version Numbers

How To Remove Script Version Numbers

function wpex_remove_script_version( $src ) { if ( strpos( $src, 'ver=' ) ) { $src = remove_query_arg( 'ver', $src ); } return $src; } add_filter( 'script_loader_src', 'wpex_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', 'wpex_remove_script_version', 15, 1 );

Read more

Move Aside Content On Top Of Logo For Header Three

// Move header aside content above logo by tweaking the action hooks function move_header_aside() { // Remove action remove_action( 'wpex_hook_header_inner', 'wpex_header_aside' ); // Re-add with higher priority add_action( 'wpex_hook_header_inner', 'wpex_header_aside', 0 ); } add_action( 'init', 'move_header_aside' );

Read more

Remove Recommended Plugins

This snippet can be used to remove the recommended plugins function from the theme. Note: In the latest versions of the theme you can disable this right via the main Theme Panel.

Read more

Disable the Menu Completely

// Disable the header menu. add_filter( 'totaltheme/header/menu/is_enabled', '__return_false' ); // Optional: Remove any Customizer header menu options. add_filter( 'totaltheme/header/menu/is_custom', '__return_true' );

Read more

How to Display Custom Menus Based on the Current Page

The Total theme includes a handy filter named "totaltheme/header/menu/wp_menu" which will allow you to conditionally alter the ID of the main menu so you can easily display different menus for your main header menu depending on the current page/section of…

Read more

Create Unique Sidebar Template Files

/** * Display different sidebar templates for your site * Requires Total 2.0.3 or greater */ function my_wpex_get_sidebar_template( $template ) { // Display sidebar-cars.php for your "cars" custom post type if ( is_singular( 'cars' ) || is_post_type_archive( 'cars' ) )…

Read more
Back To Top