Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
!!! Custom color issue in customizer
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiuvertistudio committed Jun 8, 2016
1 parent 2bf1bad commit fb9d130
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
18 changes: 11 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ function zillah_php_style() {
$zillah_c5 = $zillah_picker->color5;
}

$header_text_color = get_header_textcolor();

if( isset( $zillah_c5 ) ) {
$rgb = zillah_get_rgb( $zillah_c5 );
}
Expand Down Expand Up @@ -473,10 +475,11 @@ function zillah_php_style() {
color: '.$zillah_c2.';
}
a, .entry-content a:visited, .comment-content a:visited,
.site-title a, .site-title a:visited,
.cat-links, .entry-header .cat-links, .cat-links a,
p.dropcap:first-letter,
.site-footer .fa {
.site-footer .fa,
.author-details-title,
.entry-content #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
color:'.$zillah_c2.';
}
button, input[type="button"], input[type="reset"], input[type="submit"], .btn {
Expand Down Expand Up @@ -545,11 +548,6 @@ function zillah_php_style() {
';

/* Color 4 */
echo '
body {
background: '.$zillah_c4.';
}
';

/* Color 5 */
echo '
Expand Down Expand Up @@ -577,6 +575,12 @@ function zillah_php_style() {
}
';

echo '
.site-title a {
color: #'. esc_attr( $header_text_color ) .'
}
';

}
echo '</style>';
}
Expand Down
2 changes: 0 additions & 2 deletions inc/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ function zillah_custom_header_setup() {
}
add_action( 'after_setup_theme', 'zillah_custom_header_setup' );



4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,10 @@ p.dropcap:first-letter {
margin-bottom: 50px;
}

.post-thumbnail-wrap img {
width: 100%;
}

.entry-title-blog {
margin-bottom: 0;
}
Expand Down

0 comments on commit fb9d130

Please sign in to comment.