Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [bootstrap-theme]

Use it for questions about the Drupal Bootstrap base theme.

Filter by
Sorted by
Tagged with
0 votes
0 answers
63 views

Bootstrap Accordion

This is the code I have used in the paragraph--faq-group.html.twig template file. The output is coming as usual, but when I click on the accordion tab, every tab is expanded. I want only one tab to be ...
Thilak Kumar's user avatar
0 votes
1 answer
190 views

Create tabs with paragraphs and Bootstrap tabs

I'm working on a project that consists of transferring a laravel website to drupal. One of the features that I'm having difficulty recreating is separating content information into tabs. This content ...
LordCaosWInc's user avatar
0 votes
1 answer
154 views

Override Default Theme's 'page' TWIG template, but not the original page template pre-process hook

I'm using the default theme, Bootstrap Barrio, but for certain pages I'm overriding the page.html.twig template to re-arrange the layout, however I still want the pre-processing done by my theme in ...
micbay's user avatar
  • 13
1 vote
1 answer
207 views

Custom Menu Template not Rendering Menu Links

I'm building a custom module that modifies the main theme (barrio bootstrap in this case) to establish a landing page. In that process, it hides blocks in some regions and takes over rendering the ...
micbay's user avatar
  • 13
1 vote
1 answer
120 views

How do I stop Fields being rendered twice for a node with Paragraph Types using UI Patterns?

I'm using UI Patterns within Paragraph Types which is resulting in the Fields being rendered twice in the theme. I'm using a sub theme of the bootsrap5 contrib theme. I have a custom layout twig:- {# /...
Darren's user avatar
  • 293
0 votes
1 answer
136 views

Where is the look of the Search button in Bootsrap5 defined?

I have a Drupal 9.5.1 website with Bootstrap5 2.0.6 as its base theme. The theme by default places a search form by means of a block named "Search" in the "Additional navigation region&...
Free Radical's user avatar
  • 15.1k
0 votes
1 answer
59 views

How do I lock down a child theme to use jQuery 3.6.0?

My older site uses bootstrap 3 and has been working great when accessed from a mobile phone and the hamburger menu kicks in, but something has happened in jQuery 3.6.2 (In Drupal 9.5.0) that causes ...
Mr.C's user avatar
  • 1
0 votes
1 answer
236 views

How do I load the Bootstrap CSS into a CKEditor template?

Just how we add custom theme style, I want to add Bootstrap CSS. Is there a way to do it? /** * Implements hook_ckeditor_css_alter(). */ function mymodule_ckeditor_css_alter(array &$css, Editor $...
user7167081's user avatar
1 vote
0 answers
227 views

Ajax MessageCommand is not using Bootstrap Barrio status-message theme template

I have a Controller in my custom Module which returns an Ajax Response: $response = new AjaxResponse(); $response->addCommand(new MessageCommand('In den Warenkorb gelegt', NULL, ['type' => '...
makkus's user avatar
  • 141
1 vote
0 answers
833 views

TWIG errors after upgrade to PHP 8

We have a D9 site running on Acquia. It uses a Bootstrap based subtheme. When we upgraded PHP from 7.4 to 8 we get this error: TypeError: Unsupported operand types: string - null in ...
Dorian Winterfeld's user avatar
0 votes
1 answer
846 views

create subtheme: permission problem Bootstrap5

It is not possible to create a subtheme in Bootstrap5 in Drupal 9. An issue was opened on Drupal.org and it is supposed to have been resolved, but comments continue to arrive from users who continue ...
Rafael's user avatar
  • 1
1 vote
1 answer
81 views

Botton webform change bootstrap class

Maybe someone knows why when you change the name of the button, its class changes from btn-primary to btn-default. btn-primary only if there is a submit in the button name (Without spaces before or ...
Павел Герасюта's user avatar
0 votes
1 answer
442 views

How to make a vertical menu properly?

Good morning all, Today I would like to ask a simple question about the menus. How do you make a clean sidebar that takes up the entire length of the page? In general, the themes offer only natively ...
Monster971's user avatar
-1 votes
1 answer
409 views

How can I make Barrio SASS gulpfile coninue watching for changes

When running gulp. It runs and compiles SASS one time. How can I adjust the watch so that it continues watching for changes. Do I need to add usePolling: true or usegulp.series. I am following the ...
paul cappucci's user avatar
0 votes
1 answer
1k views

Is it possible to pass classes to twig include template

Drupal 9 bootstrap barrio sub-theme. I would like to use a generic template to build some "card" bootstrap display. This template is called by multiple other templates like this : {% include ...
titouille's user avatar
0 votes
1 answer
253 views

Radix JavaScript

I am using the Radix Bootstrap Theme and Drupal 9.1.5. I have a Navigation Block with Children (using Bootstrap Dropdown) and some JS in radix_aur_scipt.js. I use that JS to open a Bootstrap Modal ...
michael's user avatar
2 votes
0 answers
101 views

How do I change layout?

A disclaimer first: I am a professional medievalist, not a programmer or a front-ender. I have some front-end knowledge, but not a lot. So, please, be easy on me. Now, I am customizing a Bootstrap 4 ...
Jables89's user avatar
-1 votes
1 answer
84 views

Adding a Javascript library

I apologize for asking this for the 100th time but I just cannot understand the previous answers. There are 2 modules (form placeholder and chosen)where cannot get their libraries included. Step 1: ...
user102319's user avatar
0 votes
1 answer
424 views

How to put the Bootswatch theme locally?

I am using this sub-theme and I can't find any help. bootstrap-barrio-installation barrio-starter-kit I am currently using Bootswatch Flatly in CDN mode. I want to put everything locally. Here is ...
mathieuzen's user avatar
1 vote
2 answers
630 views

table styles not applied by bootstrap sub-theme

I'm writing a custom sub-theme of bootstrap with Drupal 9, and have noticed that table elements in my forums do not render properly: This is despite me selecting "Bordered Table" in the ...
quant's user avatar
  • 556
0 votes
1 answer
2k views

Adding a variable to a menu twig template

Im trying to use bootstrap for an accordion menu. My issue is that I need unique ID's for each accordion item. I found some similar topics here: Add Unique ID to Menu Item and here: How to add a ...
mfvill's user avatar
  • 1
0 votes
1 answer
579 views

I can't override the node template

I have installed Barrio Bootstrap (8.x-4.33) and it worked so far. But I can't override a template for a specific node type. I copied the original template into my subtheme/template folder and named ...
Breaky's user avatar
  • 1
0 votes
1 answer
1k views

Getting Bootstrap Carousel to set Active class?

I have a Drupal 7 site that has 2 Bootstrap carousels. One that rotates automatically and takes up the width of the page. One that has 3 smaller items and only when the page is narrowed (e.g. on ...
Hometoy's user avatar
  • 112
0 votes
0 answers
25 views

Center concatenated fields in theme table

In the attached image I have two similar tables. The first one was created using views, the second one is the table I'm creating with my own module. My question is: How can I center the information in ...
zephirus's user avatar
  • 377
0 votes
1 answer
608 views

How can I add a Dismiss Button to a Webform Modal Conformation?

I added an extra close button to my webform confirmation modal in a Bootstrap 4 theme: <button class="btn btn-primary" data-dismiss="modal" id="button-close-modal" ...
Webdrips's user avatar
  • 742
1 vote
2 answers
264 views

Layouts using the grid system

How can I lay out blocks or paragraphs using Bootstrap's grid system? I found this seven-year-old answer and am hoping things have evolved since then, and if so would like to know how. My best stab ...
glenviewjeff's user avatar
0 votes
1 answer
284 views

How can I set the site root page to a landing page instead of user login?

I'm using a custom bootstrap 3 theme as my default theme which sets the user_login page. When I go to the root of my site, this is the page that appears. How do I change the root of my site to display ...
user avatar
1 vote
1 answer
87 views

Suggested template file is not working for Custom Search's template

I have installed Custom Search module for my drupal7 setup. I am trying to modify template files for search-result and search-results. By default its using template files from contrib module's theme ...
Vik Durve's user avatar
-2 votes
1 answer
150 views

How can I make a multi-column content section with Paragraphs and Bootstrap?

How to adapt this code in php for Drupal 7? https://jimbir.ch/blog/making-multi-column-content-section-drupal-paragraphs-bootstrap drupal-paragraph-multi-column-field.html.twig {% for item in items %...
Jipi's user avatar
  • 11
1 vote
1 answer
482 views

Change Classes in Nav-Tag of Custom Menu

On a Drupal 8 installation, I have a menu in the sidebar first region. I want to add classes to bootstrap classes to the different levels of that menu. For that I created a my own menu template, which ...
TheKidsWantDjent's user avatar
1 vote
0 answers
49 views

How do I add an item to the Bootstrap Simple Carousel on Drupal 8?

I'm having problems configuring the Bootstrap Simple Carousel module on Drupal 8. I see that I can add carousel items at /admin/structure/bootstrap_simple_carousel and I've created the carousel block ...
Charlie's user avatar
  • 11
0 votes
0 answers
576 views

Turning off sanitizer for bootstrap

My javascript popovers are breaking here and there. When I searched for the solution, I came to a conclusion that I need to disable the sanitizer. I could not find a line for it in the bootstrap.js ...
Efe's user avatar
  • 45
1 vote
1 answer
988 views

How do I use hook_preprocess_page_title() on a Bootstrap subtheme?

I've just discovered that Drupal 8 Bootstrap theme doesn't implement all existent hooks. So, for example, hook_theme_suggestions_page_alter() works, but hook_theme_suggestions_node_alter() doesn't ...
leandro713's user avatar
0 votes
1 answer
149 views

How to display custom block anywhere in a div?

I am creating one drupal 8 theme based on bootstrap framework, for banners I created one custom block, named as 'Homepage banner', without creating any region, how to display this on my homepage ...
Manish Pushkar Jha's user avatar
-2 votes
2 answers
84 views

Reduce navbar min-height without modifying or adding css files

I have successfully installed and configured Drupal 8 I am using bootstrap project as theme The height of the navigation region on the top is as default has a css navbar which has min-height 50px as ...
Dickens A S's user avatar
0 votes
0 answers
56 views

Tabs not visible after creating view tabs

I am trying to create view tabs and follow below video https://www.youtube.com/watch?v=hpuRdzyK3jI but couldn't get any tabs displayed, only the results are displayed. I am using Bootstrap Barrio ...
Rafee's user avatar
  • 494
0 votes
0 answers
6k views

How can I solve this Uncaught TypeError: $elements.tooltip is not a function?

Problem The tooltips don't work. I have the following error message in Chrome's JS console. jquery.min.js?v=3.2.1:2 Uncaught TypeError: $elements.tooltip is not a function at Object....
crs1138's user avatar
  • 101
1 vote
1 answer
897 views

How do I use Bootstrap theme's modal.jquery.ui.bridge's mapped events?

I am using a Bootstrap subtheme, and would like to trigger an event when a modal is closed. Reviewing the main theme's modal.jquery.ui.bridge.js file, I see that the bridge is intending to map jQuery ...
akalata's user avatar
  • 592
0 votes
1 answer
290 views

How do I turn off mobile menu collapse for bootstrap 3 theme in drupal 8?

I am looking to use a different mobile menu solution and replace the default bootstrap 3 mobile menu. How can I turn off the bootstrap collapsed mobile menu function?
Anon Ymous's user avatar
0 votes
0 answers
31 views

Update to drupal 8.7 caused paragraphs to display improperly

I am using bootstrap paragraphs (BP) as part of my project. When I updated to D8.7, the BPs that define layout (e.g. 2 column, accordion, etc.) stopped displaying. I then tried a roll back to 8.6 ...
Kevin Finkenbinder's user avatar
0 votes
1 answer
36 views

<h1>Classification: {{ content.field_classification.value }}</h1> not displaying

Hoping someone can assist me please. I am trying to display the value of a custom field in a bootstrap sub theme I have created my node--testtype.html.twig template and that seems to work. I'm ...
user avatar
0 votes
1 answer
42 views

Rendered markup different than template markup

I am using drupal 7, and the bootstrap base theme to make a simple theme for a website I am working on. I am having issues with Drupal forcefully changing my html5 hierarchy and it's causing the site ...
Ex0r's user avatar
  • 181
1 vote
1 answer
524 views

How to load jQuery UI after bootstrap js files?

I'm a newbie to drupal 7, And I'm facing a conflict between jquery.ui.button.js and bootstrap/button.js because jquery ui is loaded before bootstrap. How can I change the order and load jquery ui last?...
Ahmed's user avatar
  • 11
0 votes
1 answer
128 views

How do I correctly implement hook_bootstrap_colorize_text() to alter button colors in a Bootstrap sub-theme?

I have read similar questions on here, but I'm still struggling for an answer for this. I'm trying to implement hook_bootstrap_colorize_text() to alter button colors in a Bootstrap sub-theme. I ...
B. Hoffmaster's user avatar
0 votes
1 answer
1k views

Barrio theme not showing user menu drop-down

I tried to show the multilevel dropdown submenu for the user account menu in subtheme using bootstrap_barrio but it is not showing up. however i did the configuration in the block to show multilevel ...
Amr Hesham Elsayed's user avatar
0 votes
0 answers
227 views

Align Bootstrap table sticky headers with columns when scrolling

I'm using Bootstrap theme in my Drupal 7 site. In a custom module, I create a simple table (not views) and the headers are aligned with the corresponding columns: When I scroll down the headers ...
zephirus's user avatar
  • 377
0 votes
1 answer
513 views

"Expand all menu links" Menu Block selection shows all menu items in block not just active trail items

I have a menu block that I have setup with Initial visibility level = 2 and Number of levels to display = Unlimited. When I check the "Expand all menu links" checkbox and view my menu block it is ...
bcanini's user avatar
  • 11
0 votes
0 answers
71 views

Bootstrap Responsive Wrappers module's Format field won't save using Drupal 8

I've setup a new style (Configuration / Content Authoring / Text Formats and Editors) in order to use the Bootstrap Responsive Wrappers module for video embeds. I can apply the Format to text fields ...
Auxiliary Joel's user avatar
0 votes
1 answer
2k views

How to display a form in modal dialog on page load?

This is on Drupal 8.6, PHP 7.2, Theme is based on Bootstrap. The scenario is, I want to display a dialog box with a subscription form in the home page. The dialog box will be loaded automatically ...
Md. Shafiq Hossain's user avatar
1 vote
1 answer
147 views

How to customize a link with a custom module?

I installed the "Private Message" module on Drupal 8. There is a link to send a message that I want to transform into a Bootstrap button. How to customize a link on Drupal 8 ? Here is the HTML code ...
user avatar