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('__before_body', 'html5shiv', -1); | |
function html5shiv(){?> | |
<!--[if lte IE 8]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<?php | |
} |
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_default_widgets' , 'add_credits_widget'); | |
function add_credits_widget( $defaults ) { | |
$defaults['credits_widgets'] = array( | |
'name' => __( 'Colophon Credits Widget' , 'customizr' ), | |
'description' => __( 'In the central colophon block' , 'customizr' ) | |
); | |
return $defaults; | |
} | |
add_filter('tc_credits_display' , 'display_my_credits_widget', 20); |
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_slider_display', 'my_slider_wrapper'); | |
function my_slider_wrapper( $_slider ){ | |
return '<div id="my-slider-wrapper">' . $_slider . "</div>"; | |
} |
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
/* Center logo/title and navbar when sticky enabled */ | |
.sticky-enabled .logo-centered .navbar-wrapper{ | |
float: none; | |
margin: auto; | |
clear: both; | |
} | |
.sticky-enabled .logo-centered .brand{ | |
width: 100%; | |
} |
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_tagline_display' , 'my_image_in_tagline'); | |
function my_image_in_tagline() { | |
global $wp_current_filter; | |
$image_src = 'http://presscustomizr.com/wp-content/uploads/2015/04/press-customizr-logo1.png'; | |
$image_alt = 'My image'; | |
$img = "<img src='$image_src' alt='$image_alt' class='my-img-tagline'>"; | |
?> | |
<?php if ( !in_array( '__navbar' , $wp_current_filter ) ) :?> | |
<div class="container outside"> |
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
// Disable customizr-pro credits | |
/* You can achieve the same by unchecking "Enable the footer copyrights and credits" in the Footer options*/ | |
add_action('after_setup_theme', 'disable_pro_credits', 40); | |
function disable_pro_credits(){ | |
if ( method_exists('TC_fc', 'fc_custom_credits') ){ | |
remove_filter( 'tc_credits_display', array(TC_fc::$instance, 'fc_custom_credits') ); | |
} | |
} | |
add_filter( 'tc_default_widgets' , 'add_credits_widget'); |