Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hello, I wanted to know if there is a way to override the default search form block and remove the search box, leaving the search button only. Should I use the hook_form_alter in the .theme file or should I change the block---search-form-block.html.twig file? And I also wanted to know how to add Font Awesome's search icon on the button.
Thank you for your replies in advance, and any solutions would be most welcome. I am still new to Drupal and I would be really grateful for any help that you provide me with.
The original approach was incorrect since modifying the Drupal table was complex and difficult to be implemented as it is.
The approach I ended up taking was to create a custom dynamic javascript table with the jQuery UI sortable table plugin attached to it, and filling a Drupal table field with the values of that dynamic table. This way the developer has better control over the behavior of the table without having to change the underlying Drupal table behavior.
So I am converting one of my D7 sites to D8 and have decided to go all in on using the new layout builder. I think it's really awesome and will be great for our content editors. I'm wondering if anyone is aware of any themes on the marketplace anywhere that already come with some layout builder layouts perhaps using Bootstrap or even better some custom block types and TWIG templates that I could then embed predefined widgets already styled in the themes style into layout builder.