This file contains hidden or 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('template_redirect', 'mobile_slider'); | |
function mobile_slider(){ | |
if ( ! ( tc__f('__is_home') && wp_is_mobile() ) ) | |
return; | |
// remove the following filter if you wanna keep the slider centering feature | |
add_filter('tc_customizr_script_params', 'no_center_slides'); | |
function no_center_slides($params){ | |
$params['centerSliderImg'] = 0; | |
return $params; | |
} |
This file contains hidden or 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 /*Add the following code at the very beginning of your template file, just after the Template declarative block */ ?> | |
<?php | |
// strangely you have to set this to false, typo in the core code. | |
// useful just when you display the page which uses this template in home as static page | |
// consider that the navigation will not work properly (and not because of customizr :P) | |
add_filter('tc_display_customizr_headings', '__return_false'); | |
add_filter('tc_post_list_controller', '__return_true'); |
This file contains hidden or 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('rtmedia_main_template_include', 'tc_rtmedia_comp', 20); | |
function tc_rtmedia_comp() { | |
global $wp_query; | |
$wp_query->is_singular = true; | |
} | |
/*DO NOT COPY THE FOLLOWING IN YOUR CHILD THEME FUNCTIONS.PHP */ | |
/* The following css must be put in your child-theme style.css or in your custom css box */ | |
/* | |
body.media { |
This file contains hidden or 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_display_post_thumbnail', 'strip_and_nofollow'); | |
add_filter('tc_tag_list', 'strip_and_nofollow'); | |
add_filter('tc_date_meta', 'strip_and_nofollow', 9999); | |
add_filter('tc_show_link_to_post_after_metas', 'strip_and_nofollow', 9999); | |
add_filter('tc_author_meta', 'strip_and_nofollow', 9999); | |
function strip_and_nofollow($text){ | |
$text = stripslashes($text); | |
$text = preg_replace_callback('|<a (.+?)>|i', 'strip_and_nofollow_callback', $text); | |
return($text); |