This forum is for assistance with theme development.

Overriding default search form block

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.

Help implementing draggable tables on an existing node create form

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.

How to add Google Fonts locally with Bootstrap SASS ?

I have a Drupal 8 site and Bootstrap 3 theme (SASS)

I use the following Bootswatch theme on my site :

https://bootswatch.com/3/flatly/_bootswatch.scss

There are these 2 lines in the file :

    $web-font-path: "https://fonts.googleapis.com/css?family=Lato:400,700,400italic" !default;
    @import url($web-font-path);

I used this site to download the corresponding Google Fonts archive :

How to install Awesome Font Locally with Bootstrap for Drupal ?

I have a site with Drupal 8.7 and Bootstrap 3.4.1 in SASS.

I have created a Bootstrap SASS subtheme, I want to host Font Awesome locally.

I downloaded and decompressed the archive at this address :

https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome...

In the directory of my subtheme :

    /bootstrap_subtheme_front_office_old/fonts

If I go to my site, the Awesome Font does not work.

How to use Bootswatch theme with Bootstrap for Drupal ?

I have a site with Drupal 8 and Barrio (Bootstrap 4) in SASS.

How to add the theme "Flatly" in my subtheme ?

https://bootswatch.com/

Bootstrap 4 theme that utilizes the new D8 Layout Builder?

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.

Pages

Subscribe with RSS Subscribe to RSS - Theme development