Skip to content

Center Bottom Footer Links

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

Conditionally Disable Fixed Header/Menu

The sticky header can be enabled and disabled globally via the Customizer but if for some reason you need to disable the sticky header conditionally you can use the "totaltheme/header/sticky/is_enabled" filter. This may be useful if you have a section…

Read more

Display Mobile Menu Always & Hide Default Menu

This snippet allows you to hide the default menu completely and show only the mobile menu for all screen sizes in the Total WordPress theme. Important: Since Total 5.0+ you can simply enter 9999 into the Mobile Menu Breakpoint setting…

Read more
Back To Top