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
<?php | |
/* | |
* Template Name: Page with custom content's width | |
* | |
*/ | |
/* Custom params */ | |
$window_content = array( | |
// min window's width => container's width | |
'1200px' => '98%', | |
'768px' => '95%', |
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
$n_match = 0; | |
function fp_action(){ | |
global $n_match; | |
$n_match++; | |
ob_start(); | |
do_action("__between_fp_rows_{$n_match}"); | |
$my_action = ob_get_contents(); | |
if (! $my_action ) return ''; | |
ob_end_clean(); | |
return $my_action; |
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('wp_head', 'move_tagline_below_logo'); | |
function move_tagline_below_logo(){ | |
if ( ! method_exists('TC_header_main', 'tc_tagline_display') ) | |
return; | |
remove_action('__navbar', array(TC_header_main::$instance, 'tc_tagline_display'), is_rtl() ? 10 : 20 ); | |
add_action('__after_logo', array(TC_header_main::$instance, 'tc_tagline_display') ); | |
add_filter('tc_tagline_class', 'span7_to_12'); | |
function span7_to_12( $_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_customizr_script_params', 'add_sticky_offset_param'); | |
function add_sticky_offset_param( $params){ | |
$params['stickyCustomOffset'] = '45'; /* in pixels */ | |
return $params; | |
} |
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
/* configuration */ | |
$fpc_by__conf = array( | |
'by' => 'category', /* or 'tag'*/ | |
'is' => '1', /* category id , or tag name */ | |
'per_row' => '', /* set this to 'fpc' if you want to use the FP settings */ | |
'nb_max' => '' /* set this to 'fpc' if you want to use the FP settings */ | |
); | |
/* | |
* per_row and nb_max behavior: | |
* |
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_show_post_metas_publication_date', 'show_pub_date_in_category'); | |
function show_pub_date_in_category( $bool ){ | |
//replace 1 with the category ID | |
return is_archive() ? is_category(1) : $bool; | |
} |