Skip to content

Instantly share code, notes, and snippets.

@timrobertson100
Created June 8, 2017 12:59
Show Gist options
  • Save timrobertson100/b0c89afbb08e38fd877c8fb422fe4d5b to your computer and use it in GitHub Desktop.
Save timrobertson100/b0c89afbb08e38fd877c8fb422fe4d5b to your computer and use it in GitHub Desktop.
Homepage hack
<!-- Redirect users to demo for a better experience -->
<form class="form-search content-search" action="https://demo.gbif.org/search" method="get" id="search-block-form--2" accept-charset="UTF-8">
<div>
<div>
<h2 class="element-invisible">Search form</h2>
<div class="input-group">
<input title="Search news items and information pages..." placeholder="Search news items and information pages..." class="form-control form-text" type="text" id="edit-search-block-form--4" name="q" value="" size="15" maxlength="128">
<span class="glyphicon glyphicon-search bring-forward"></span>
</div>
<div class="form-actions form-wrapper form-group" id="edit-actions--2">
<button class="search-btn-fp btn btn-primary form-submit form-submit" type="submit" id="edit-submit--2" name="referrer" value="www.gbif.org">Search</button>
</div>
</div>
</div>
</form>
@timrobertson100
Copy link
Author

timrobertson100 commented Jun 8, 2017

vi /var/www/html/drupal/sites/all/themes/custom/bvng/templates/system/page--front.tpl.php
replace <?php print render($search_form); ?> with above
 curl -X PURGE http://www.gbif.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment