Put the following code in functions.php
file of your theme:
function THEMESLUG_filter_front_page_template( $template ) {
return is_home() ? '' : $template;
}
add_filter( 'frontpage_template', 'THEMESLUG_filter_front_page_template' );
Put the following code in functions.php
file of your theme:
function THEMESLUG_filter_front_page_template( $template ) {
return is_home() ? '' : $template;
}
add_filter( 'frontpage_template', 'THEMESLUG_filter_front_page_template' );
#!/bin/bash | |
# List of repos to create backups for | |
REPOS=( | |
"/path/to/repo/1" | |
"/path/to/repo/2" | |
) | |
# Message for auto-commits |
<?php | |
/** | |
* Get template by name | |
* | |
* @param string $name Template name without extension | |
* @param mixed $data Data to pass to the template | |
*/ | |
function PREFIX_get_template( $name = '', $data = null ) { |