Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

Commit

Permalink
Integrate customizer for slider navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwight committed Oct 23, 2012
1 parent 066dc2f commit 91fd500
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions functions.php
Expand Up @@ -214,6 +214,12 @@ function debut_add_customizer_css() { ?>
.debut-lang:hover {
background-color: <?php echo get_theme_mod( 'debut_link_color' ); ?>;
}
<?php if ( function_exists( 'kwight_slider' ) ) : ?>
.kwight-slider-control-paging li a:hover,
.kwight-slider-control-paging li a.kwight-slider-active {
background-color: <?php echo get_theme_mod( 'debut_link_color' ); ?>
}
<?php endif; ?>
</style>
<?php }
add_action( 'wp_head', 'debut_add_customizer_css' );
Expand Down
6 changes: 5 additions & 1 deletion js/debut-customizer.js
Expand Up @@ -14,8 +14,12 @@ jQuery( document ).ready( function( $ ) {
wp.customize( 'debut_link_color', function( value ) {
value.bind( function( to ) {
$('body').css('border-color', to );
$('.kwight-slider-control-paging li a').css({
'background-color': '#ddd',
'background-color': 'rgba(0,0,0,0.3)'
});
$('a').not('.main-navigation .current-menu-item > a').css('color', to );
$('.main-navigation .current-menu-item > a').css({
$('.main-navigation .current-menu-item > a, .kwight-slider-control-paging li a:hover, .kwight-slider-control-paging li a.kwight-slider-active').css({
'background-color': to,
'color': '#fff'
});
Expand Down
4 changes: 4 additions & 0 deletions style.css
Expand Up @@ -1086,6 +1086,10 @@ input.searchsubmit {
.kwight-fs-slides .entry-title {
margin-left: 0;
}
.kwight-slider-control-paging li a:hover,
.kwight-slider-control-paging li a.kwight-slider-active {
background-color: red;
}


/* =Responsive
Expand Down

0 comments on commit 91fd500

Please sign in to comment.