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 widget area between footer widgets and colophon */ | |
add_filter( 'tc_default_widgets' , 'add_footer_colophon_widget' ); | |
function add_footer_colophon_widget( $defaults ) { | |
$defaults['fc_widgets'] = array( | |
'name' => __( 'Footer Colophon Widget' , 'customizr' ), | |
'description' => __( 'Widget Area Before Colophon' , 'customizr' ) | |
); | |
return $defaults; | |
} | |
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
/* remove sidebar borders on home*/ | |
.home #left.widget-area, | |
.home #right.widget-area{ | |
border: none; | |
} | |
.home #left.widget-area:after, | |
.home #right.widget-area:before{ | |
border: none; | |
} | |
/* add #content borders on home */ |
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_footer' , 'rss_widget_links_in_new_window'); | |
function rss_widget_links_in_new_window() { | |
?> | |
<script type="text/javascript"> | |
! function ($) { | |
//prevents js conflicts | |
"use strict"; | |
$(function () { | |
var extLinksStyle = true; /* set this to false to not display the external icon */ | |
$('a', '.widget.widget_rss').each( function() { |
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('__header', 'tc_header_container_start', 0); | |
function tc_header_container_start(){ | |
echo '<div class="tc-header-container container">'; | |
} | |
add_action('__header', 'tc_header_container_end', 100); | |
function tc_header_container_end(){ | |
echo '</div>'; | |
} |