Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

0

None of the previous answers was working for mine. Here one where you can choose your template in Wordpress admin. Just put it in your main php plugin file and change template-configurator.php by your template name //Load template from specific page add_filter( 'page_template', 'wpa3396_page_template' ); function wpa3396_page_template( $page_template ){ ...


0

You can create a separate header.php file and call it something like header-light.php. in your get_header() call you pass the one you want. Like this: get_header( 'light' );


0

Try this: if ( !is_home() && !is_cart() && !is_checkout() && !is_account_page() ) : if ( is_page( 'contact-us' ) ): get_template_part( 'template-parts/header/header', 'map' ); else: get_template_part( 'template-parts/header/header', 'slider' ); endif; endif; is_home() will return true if the current page/...


Top 50 recent answers are included