Questions tagged [bootstrap-theme]
Use it for questions about the Drupal Bootstrap base theme.
108
questions
0
votes
0
answers
33
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 ...
0
votes
0
answers
16
views
How to group some exposed filters in a collapsible block
I have a view with several exposed filters
The theme is based on bootstrap, so I'm looking for a way to group some of them within a collapsible or accordion block (Bootstrap example)
I'd like to avoid ...
0
votes
1
answer
234
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 ...
0
votes
0
answers
47
views
Strange behaviour of regions displays in D9 Bootstrap theme
I'm working on a site based on Drupal 9 and Bootstrap 5.
I can normally create new regions and call them in the front.html.twig template, so that they are correctly displayed and rendered in the block-...
1
vote
1
answer
39
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 ...
0
votes
1
answer
99
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 ...
-1
votes
1
answer
183
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 ...
0
votes
1
answer
251
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 ...
0
votes
1
answer
91
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
...
2
votes
0
answers
77
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 ...
0
votes
0
answers
29
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: ...
0
votes
1
answer
229
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 ...
1
vote
2
answers
228
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 ...
0
votes
1
answer
686
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 ...
0
votes
1
answer
212
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 ...
0
votes
1
answer
594
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 ...
0
votes
0
answers
20
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 ...
0
votes
1
answer
166
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" ...
1
vote
2
answers
109
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 ...
0
votes
1
answer
138
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 ...
1
vote
1
answer
60
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 ...
-1
votes
1
answer
70
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 %...
1
vote
1
answer
288
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 ...
1
vote
0
answers
28
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 ...
0
votes
0
answers
442
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 ...
1
vote
1
answer
617
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 ...
0
votes
1
answer
81
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 ...
-2
votes
2
answers
48
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 ...
0
votes
0
answers
33
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 ...
0
votes
0
answers
5k
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....
1
vote
1
answer
604
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 ...
0
votes
1
answer
199
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?
0
votes
0
answers
29
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 ...
0
votes
1
answer
35
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 ...
0
votes
1
answer
30
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 ...
1
vote
1
answer
310
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?...
0
votes
1
answer
87
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 ...
0
votes
1
answer
986
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 ...
0
votes
0
answers
165
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 ...
0
votes
1
answer
365
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 ...
0
votes
0
answers
65
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 ...
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 ...
1
vote
1
answer
64
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 ...
1
vote
2
answers
3k
views
How to display a button with “markup”?
I created a custom module and in the code below the button is not rendered, there is only the text :
$form = ['#markup' => '<button type="button" class="btn btn-success" disabled="disabled">...
0
votes
0
answers
255
views
Disable Bootstrap Tooltips for Individual Form
Is it possible to disable bootstrap tooltips for an individual form (all the components in the form)? I know I can do it in the Bootstrap settings, which will turn off tooltips for all forms, but I ...
0
votes
0
answers
271
views
How to get rid of message “Leave site? Changes that you made may not be saved”?
I have a site which are using 2 themes : adminimal and a custom made.
When submitting a form in adminimal no message appears. In the custom theme based on bootstrap it does. The message is:
“Leave ...
0
votes
0
answers
32
views
Cannot modify headers when adding a new user
I periodically get an error in my drupal log that I believe is generated when a user is modifying or creating an account.
Today, when adding an account as an admin, I finally saw it on the screen:
...
0
votes
1
answer
192
views
When the BigPipe module is installed, the animation does not work
On this page :
https://dev.s1biose.com/profil
There is a menu at the top right. It flashes green when the .views-exposed-form class is found with this JS code:
if ($("#navbar-collapse-second ....
0
votes
1
answer
1k
views
Inside drop-down menu child menus are not working
I am using bootstrap sub-theme and created a drop-down menu and set it's menu levels they are working correctly but when i extend to child menus it's not working.
I have searched Expand menu links ...
0
votes
3
answers
312
views
Converting the login / register / password reset tabs into three different pages?
I want to separate the user account menu tabs structure into an individual page layout.
For short I want to remove the tabs, I know that the pages are different.
Snapshot attached.
What I have done ...