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_render_single_post_view', 'title_in_featured_image'); | |
function title_in_featured_image( $_html ){ | |
global $post; | |
$title = $post -> post_title; | |
if ( $title ) | |
return str_replace('</section>', '<h2>'.$title.'</h2></section>', $_html); | |
return $_html; | |
} | |
add_filter('tc_user_options_style', 'title_in_featured_image_style'); | |
function title_in_featured_image_style( $_css ){ |
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('fpc_block_display', 'fp_four_five_span6'); | |
function fp_four_five_span6( $_html ){ | |
return str_replace( array('fpc-span4 fp-4', 'fpc-span4 fp-5'), array('fpc-span6 fp-4', 'fpc-span6 fp-5'),$_html); | |
} |
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_before_logo_widget' ); | |
function add_before_logo_widget( $defaults ) { | |
$defaults['bl_widgets'] = array( | |
'name' => __( 'Before logo widget' , 'customizr' ), | |
'description' => __( 'Above the header\'s logo' , 'customizr' ), | |
); | |
return $defaults; | |
} | |
add_action('__header' , 'display_before_logo_warea'); | |
function display_before_logo_warea() { |
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
/* BOXING */ | |
add_action('after_setup_theme', 'tc_boxed'); | |
function tc_boxed(){ | |
// wrap header elements in a container | |
add_action('__header', 'tc_container_wrapper_start', 0); | |
add_action('__header', 'tc_container_wrapper_end', 100); | |
//wrap fpu elments in a container | |
if ( class_exists('TC_front_fpu') ){ |
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_thumbnail_link_class', 'remove_no_effect_class'); | |
function remove_no_effect_class( $_class ){ | |
return str_replace('no-effect', '', $_class); | |
} |
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_slider_active_status', 'hide_header_margin', 100); | |
function hide_header_margin( $bool ){ | |
if ( $bool && method_exists('TC_menu', 'tc_reset_margin_top_after_sticky_header') ) | |
remove_action('__after_header', array(TC_menu::$instance, 'tc_reset_margin_top_after_sticky_header'), 0); | |
return $bool; | |
} |