Skip to content

Alter The “Left Thumbnail” Blog Style Widths

How to Change The Main Menu Location Conditionally

In the Total theme the main header menu by default uses the "main_menu" location. However, you can easily alter the default location using the "wpex_main_menu_location" filter. This can be useful if you want to define a new menu location via…

Read more

Center Bottom Footer Links

/*Center Bottom Footer Links*/ #footer-bottom-menu { text-align: center; float: none; position:relative; top: auto; right:auto; width: 100%; margin: 20px 0 0; height: auto; line-height: auto; } #footer-bottom-menu li { display: inline-block; float:none; }

Read more

Remove Search Results Sidebar

// Remove Search Results Sidebar function remove_search_sidebar( $layout ) { if ( is_search() ) { $layout = 'full-width'; } return $layout; } add_filter( 'wpex_post_layout_class', 'remove_search_sidebar', 20 );

Read more

Add/Remove Elements from the Sidebar Mobile Menu

/** * Sample function to add/remove items from the sidebar mobile menu * @link Total/framework/core.php */ add_filter( 'totaltheme/mobile/menu/sidr/source', function( $array ) { // Add element with ID my-custom-id $array['my-custom-id'] = '#my-custom-id'; // Remove search if ( isset( $array['search'] ) )…

Read more

Change Related Portfolio Query Arguments

// Change Related Portfolio Query Arguments add_filter( 'wpex_related_portfolio_args', function( $args ) { // Remove tax_query parameter so it doesn't try and display items from the same category $args['tax_query'] = NULL; // Change orderby parameter from random to date $args['orderby'] =…

Read more

Alter The Portfolio Related Posts Heading

// Alter The Portfolio Related Posts Heading function my_portfolio_related_heading_args( $args ) { // Show different text for items in category "design" if ( has_term( 'design', 'portfolio_category' ) ) { $args['content'] = 'Custom heading'; } // Return args return $args; }…

Read more
Back To Top