Searc-bar doesn’t work.
-
The search-bar on my website doesn’t work, it doesn’t load anything, it just re-loads homepage. Here is the code that I use:
<form role="search" method="get" class="homePageBanner__content__form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div class="form-group"> <div class="row"> <div class="col-3 col-md-2"> <select class="selectStyle"> <?php $categories = get_categories(); foreach ($categories as $category) { $option = '<option value="' . $category->slug . '">'; $option .= $category->cat_name; $option .= '</option>'; echo $option; } ?> </select> </div> <div class="col-5 col-md-7 px-0"> <input type="text" name="s" id="search" placeholder="Search" class="searchBoxStyle ps-4 border-start border-1"> </div> <div class="col-4 col-md-3"> <input type="submit" value="Search" placeholder="Search For WallPapers" class="searchButtonStyle"> </div> </div><!-- row --> </div><!-- Form Group -->
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Searc-bar doesn’t work.’ is closed to new replies.