Skip to content

Alter The Portfolio Related Posts Heading

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

Alter The Page Header Style

/** * Example for changing the page header style. * Available styles: centered, centered-minimal, hidden, background-image * */ add_filter( 'totaltheme/page/header/style', function( $style ) { // Change page header style for portfolio posts if ( is_singular( 'portfolio' ) ) { $style…

Read more
Back To Top