This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ( array( 'tc_show_cat_description', 'tc_show_tax_description', 'tc_show_tag_description') as $filter ) | |
add_filter( $filter , 'taxos_description_first_page_only'); | |
function taxos_description_first_page_only( $bool ){ | |
return $bool && ! is_paged(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//don't display the designer credits in the colophon | |
add_filter('fc_show_designer_credits', '__return_false'); | |
//add new string to the footer credits | |
add_filter('tc_credits_display', 'new_credits_string', 50); | |
function new_credits_string( $html ){ | |
$new_string = 'All rights reserved'; | |
return str_replace( '</div>', '<p>'.$new_string.'</p></div>', $html); | |
} | |
//needs social links displayed in the footer, they will be replaced. | |
add_filter('tc_colophon_left_block', 'designer_credits'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('tc_opt_tc_sticky_header', 'disable_sticky_in_mobiles'); | |
function disable_sticky_in_mobiles( $bool ){ | |
return $bool && ! wp_is_mobile(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('__before_loop', 'print_blog_title', 0); | |
function print_blog_title(){ | |
$blog_title = 'Blog'; | |
if ( ! ( tc__f('__is_home') && get_option('show_on_front') == 'posts' ) ) | |
return; | |
?> | |
<header class="entry-header"> | |
<h1 class="entry-title"><?php echo apply_filters('tc_the_title', $blog_title ); ?></h1> | |
<hr class="featurette-divider __home_blog"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'tc_default_widgets' , 'add_my_custom_widget_areas' ); | |
function add_my_custom_widget_areas( $defaults ) { | |
$defaults['fp_three'] = array( | |
'name' => __( 'Third featured page' , 'customizr' ), | |
'description' => __( 'Replace the third featured page with a widget area'), | |
'before_widget' => '<div class="widget %2$s">', | |
'after_widget' => '</div>', | |
'before_title' => '<h2 class="widget-title fp-title">', | |
'after_title' => '</h2>', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('tc_slide_title_tag', 'my_slide_title_tag'); | |
function my_slide_title_tag(){ | |
return 'h5'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('tc_opt_tc_header_layout', 'my_rtl_layout'); | |
add_filter('tc_opt_tc_menu_position', 'my_rtl_layout'); | |
add_filter('tc_opt_tc_second_menu_position', 'my_rtl_layout'); | |
function my_rtl_layout( $layout ) { | |
if ( ! is_rtl() ) return $layout; | |
$find_replace = array( | |
'find' => array( 'left', 'right', '_swap_' ), | |
'replace' => array( '_swap_', 'left', 'right' ) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div[id*=customizr-slider] .carousel-inner {text-align: center;} | |
div[id*=customizr-slider] .carousel-caption {margin-left: 0; /*centers the caption*/} | |
div[id*=customizr-slider] img { width: auto; display: inline-block; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('tc_logo_attachment_img', 'my_logos'); | |
function my_logos( $original_logo ){ | |
$logo_where = array( | |
//id attachment => array ( pages, categories) | |
'630' => array( 'page' => array(10, 323, 13) , 'cat' => array('hollywood-events') ), | |
'562' => array( 'page' => array(18, 12, 586) , 'cat' => array('rockstar-events') ), | |
'561' => array( 'page' => array(8, 14, 580) , 'cat' => array('rocvenus-events') ) | |
); | |
$logo = null; |