Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Discovered a conflict between the icon module (7.x-1.0-beta3) and the search icon that is rendered by Bootstrap Theme using the search block.
When the icon module is enabled the search icon is missing. See attached.
If I disable the icon module the search icon is rendered.
If it helps here is the html for the search block when the icon module is enabled and the problem exists:
<div class="input-group">
<input id="edit-search-block-form--2" class="form-control form-text form-search" type="search" maxlength="128" size="15" value="" name="search_block_form" placeholder="Search" title="Enter the terms you wish to search for."></input>
<span class="input-group-btn">
<button class="btn btn-default" type="submit"></button>
</span>
</div>
<button id="edit-submit" class="element-invisible btn btn-primary form-submit" type="submit" value="Search" name="op">
Search
</button>
<input type="hidden" value="form-V_u1JCCpwiSrhYNr3yvDKHZj2BvUHSbhi4UKcPO3Rd0" name="form_build_id"></input>
<input
Comment | File | Size | Author |
---|---|---|---|
Missing Search Icon.png | 9.15 KB | R-H |
Comments
Comment #1
R-H CreditAttribution: R-H commentedComment #2
markhalliwellI'm sorry, but I cannot reproduce this. The only thing this reminds me of is that Bootswatch themes didn't include the fonts for the icons for a while, but that got fixed:
https://github.com/MaxCDN/bootstrap-cdn/issues/177
I noticed you marked this as rc2, try the latest dev snapshot?
http://drupalcode.org/project/bootstrap.git/snapshot/refs/heads/7.x-3.x....
Comment #3
markhalliwellActually, I just realized that #2120479: Icon API support does not work if admin theme is not Bootstrap and fonts not downloaded was only part of the fix, we need to fix
_bootstrap_icon()
to detect if we even have the Bootstrap icon bundle available, otherwise it'll just return nothing.Comment #4
markhalliwellCommitted 4c71e9e to 7.x-3.x:
Comment #5
R-H CreditAttribution: R-H commentedI've updated to the latest dev version. Original problem of search icon disappearing is fixed. New problem: 2 icons displayed. I can't attach an image to this comment since I don't know how to host one on Drupal. I'll post a new issue. Can you tell me how to host an image on D.O?
Comment #7
Andru CreditAttribution: Andru commentedSame issue 2018 - latest versions of Icon, Fontello and Bootstrap on 7.58 - the search icon does not appear unless I disable Icon module.
Quick cosmetic fix was to hardcode the search icon into the search block template to keep the appearance the same as before.