Skip to content

Commit d96efe8

Browse files
authored
Update searchform.php
1 parent 62a0c88 commit d96efe8

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

searchform.php

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
<form role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
22
<div class="input-container">
3-
<input type="search" class="search-input"
4-
value="<?php echo esc_attr( get_search_query() ); ?>"
5-
name="s"
6-
placeholder="<?php esc_attr_e( 'Search entire website... ', 'hovercraft' ); ?>" />
7-
3+
<input type="search" class="search-input" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" placeholder="<?php esc_attr_e( 'Search entire website...', 'hovercraft' ); ?>" />
4+
85
<button type="submit" class="search-submit" name="submit">
96
<?php
107
$hovercraft_layout_icons = get_theme_mod( 'hovercraft_layout_icons', 'material_icons_classic' );
118

12-
if ( $hovercraft_layout_icons === 'material_icons_classic' ) {
13-
?>
9+
if ( $hovercraft_layout_icons === 'material_icons_classic' ) { ?>
1410
<i class="material-icons search">search</i>
15-
<?php
16-
} elseif ( $hovercraft_layout_icons === 'font_awesome_version_6' ) {
17-
?>
11+
<?php } elseif ( $hovercraft_layout_icons === 'font_awesome_version_6' ) { ?>
1812
<i class="fas fa-search"></i>
19-
<?php
20-
}
21-
?>
13+
<?php } ?>
2214
</button>
2315
</div><!-- input-container -->
2416
</form><!-- searchform -->
2517

26-
<!-- Ref: https://codepen.io/jessuppi/pen/pomVZrr -->
2718
<!-- Ref: ChatGPT -->
19+
<!-- Ref: https://codepen.io/jessuppi/pen/pomVZrr -->

0 commit comments

Comments
 (0)