Skip to content

Commit ac959ec

Browse files
committed
Fixed Custom Colors for search button
1 parent 0fbfece commit ac959ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/extras.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ function shapely_get_theme_options() {
150150
.woocommerce input.button,
151151
.video-widget .video-controls button,
152152
input[type="submit"],
153+
button[type="submit"],
153154
.post-content .more-link { background:' . esc_attr( get_theme_mod( 'button_color' ) ) . ' !important; border: 2px solid' . esc_attr( get_theme_mod( 'button_color' ) ) . ' !important;}';
154155
}
155156
if ( get_theme_mod( 'button_hover_color' ) ) {
@@ -160,6 +161,7 @@ function shapely_get_theme_options() {
160161
.woocommerce input.button:hover,
161162
.video-widget .video-controls button:hover,
162163
input[type="submit"]:hover,
164+
button[type="submit"]:hover,
163165
.post-content .more-link:hover, .btn:hover, .button:hover { background: ' . esc_attr( get_theme_mod( 'button_hover_color' ) ) . ' !important; border: 2px solid' . esc_attr( get_theme_mod( 'button_hover_color' ) ) . ' !important;}';
164166
echo '.shapely_home_parallax > section:not(.image-bg) .btn-white:hover, .shapely_home_parallax > section:not(.image-bg) .btn-white:focus{ background-color: ' . esc_attr( get_theme_mod( 'button_hover_color' ) ) . '; border-color: ' . esc_attr( get_theme_mod( 'button_hover_color' ) ) . '; }';
165167
echo '.widget.widget_search .search-form > input#s:hover, .widget.widget_search .search-form > input#s:focus, .widget.widget_calendar #wp-calendar td:not(.pad):not(#next):not(#prev)#today, .widget_product_search .woocommerce-product-search > input.search-field:hover, .widget_product_search .woocommerce-product-search > input.search-field:focus, .widget.widget_search input[type="text"]:focus + button[type="submit"].searchsubmit, .widget.widget_search input[type="text"]:hover + button[type="submit"].searchsubmit, textarea:hover, textarea:focus, input[type="text"]:hover, input[type="search"]:hover, input[type="email"]:hover, input[type="tel"]:hover, input[type="text"]:focus, input[type="search"]:focus, input[type="email"]:focus, input[type="tel"]:focus { border-color: ' . esc_attr( get_theme_mod( 'button_hover_color' ) ) . ' !important }';

0 commit comments

Comments
 (0)