Skip to content

Commit

Permalink
fix bug from social section first load
Browse files Browse the repository at this point in the history
  • Loading branch information
diegorojas committed May 2, 2018
1 parent 6cfc52d commit 4dc8601
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions assets/js/customizer-liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@

( function( $ , api ) {


// Site footer bg
wp.customize( 'coletivo_footer_bg', function( value ) {
value.bind( function( to ) {
$( '.section-social' ).css( {
'background': to
} );
} );
} );

// Site footer info bg
wp.customize( 'coletivo_footer_info_bg', function( value ) {
value.bind( function( to ) {
Expand Down
2 changes: 1 addition & 1 deletion inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2843,7 +2843,7 @@ function coletivo_customize_controls_enqueue_scripts(){
*/
function coletivo_get_customizer_priority ( $panel ) {
$panel = str_replace( array( 'coletivo_', '_panel' ), '', $panel );
$order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact' );
$order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$index = 129;
$order = explode( ',', $order );
foreach ( $order as $key => $value ) {
Expand Down

0 comments on commit 4dc8601

Please sign in to comment.