• Hi There,

    I am completely new to WP and trying to do possibly some simple updates. I have a search form that appears on my website title page https://bizstay.co.uk/. I would like to add the same form in some of my product categories such as https://bizstay.co.uk/product-category/london/. Is there a way to do it? Below I was able to extract a code that was built into my webpage header area.

    <?php if(is_front_page()){ ?>
    <div style=”position: absolute; top: 106px; z-index:999″>
    <form id=”search_form” class=”custom show-search-options position-left form-inline” role=”search” method=”get” id=”searchform” action=”https://bizstay.co.uk/&#8221; style=”display: block”>
    <div class=”input-wrapper”>
    <input type=”text” class=”location input-large input-contrast” autocomplete=”off” id=”s” name=”s” placeholder=”Location or hotel name” style=”font-weight: 900; width:300px”>
    </div>
    <div id=”checkinWrapper” class=”input-wrapper”>
    <input type=”text” id=”checkin” class=”checkin search-option input-large input-contrast ui-datepicker-target” name=”checkin” placeholder=”Check in” style=”width:125px”>
    </div>
    <div id=”checkoutWrapper” class=”input-wrapper”>
    <input type=”text” id=”checkout” class=”checkout search-option input-large input-contrast ui-datepicker-target” name=”checkout” placeholder=”Check out” style=”width:125px”>
    </div>
    <div id=”checkinWrapper” class=”input-wrapper”>
    <input type=”hidden” name=”post_type” value=”product”>
    </div>
    <div id=”checkinWrapper” class=”input-wrapper”>
    <button type=”submit” class=”btn btn-primary btn-large btn-contrast” id=”submit_location” style=”width:125px; font-size: 18px;”>Search</button>
    </div>
    </form>
    </div>

    any help would be much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get 'search' field to appear on more than one page’ is closed to new replies.