- Issue created by @ravi kant
- 🇬🇧United Kingdom 2dareis2do
Hi Ravi
Thanks for the feedback.
Is this just an issue with search block?
Personally I am using solr with search_api. I have tried enabling search block and cannot reproduce
That is is I can place search block in either region
What I do see is that it looks like search block is enabled in
config/optional/block.block.bootstrap_sass_starter_kit_search_form_wide.yml
e.g.
langcode: en status: true dependencies: module: - search theme: - bootstrap_sass_starter_kit id: bootstrap_sass_starter_kit_search_form_wide theme: bootstrap_sass_starter_kit region: top_header_form weight: -7 provider: null plugin: search_form_block settings: id: search_form_block label: 'Search form (wide)' label_display: '0' provider: search page_id: '' visibility: { }
Perhaps it has been added twice, once by you ad once by the install config ? Maybe check your regions and layout for the theme.
Perhaps I could simply remove this as search is not enabled by default in Drupal afaict.
- 🇬🇧United Kingdom 2dareis2do
I have decided to remove the duplicate entries for now. Also moving to default to primary menu as per getbootsrtap site.
My feeling is some additional theming may be required to get this to look as it should.
Will leave this ticket open for now with that in mind.
- 🇬🇧United Kingdom 2dareis2do
attaching screenshots showing un-styled search block
- 🇬🇧United Kingdom 2dareis2do
Ok, looking at standard install profile it does seem like search is enabled by default. It probably does make sense to show this by default as well.
I have made a few changes around here. This is limited by what Drupal offers out of the box in terms of theming elements. Certainly tools like formdazzle or other template suggestions might help improve the specificity of templates used and hence can be fine tuned. e.g. perhaps a suggestion that distinguishes a search menu block from a search block (i.e. just an form with input field and button) may help to improve how this works.
Anyway here are the changes:
- Removed duplicate search boxes being shown (narrow, wide)
- Moved to show search block in primary nav
- Realigned items including user nav. the me-auto class here sets the alignment. (interestingly of the first search input is too wide on the style guide (nav item) this can be set with width auto to improve things here)
- Made secondary colour to be default
- Added more colours to choose from (buttons)
- Status changed to Fixed
about 1 year ago 6:47pm 30 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.