Questions tagged [bootstrap-theme]
Use it for questions about the Drupal Bootstrap base theme.
115
questions
-1
votes
1
answer
34
views
How to change author_picture image style in node.html.twig
How to change {{ author_picture }} image style in the node.html.twig.The default style is "thumbnail" , I want to change the image style to a custom style named "mini_avator" but I ...
0
votes
0
answers
115
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 ...
0
votes
1
answer
268
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 ...
0
votes
1
answer
240
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 ...
1
vote
1
answer
290
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 ...
1
vote
1
answer
156
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:-
{#
/...
0
votes
1
answer
160
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&...
0
votes
1
answer
63
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 ...
0
votes
1
answer
261
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 $...
1
vote
0
answers
270
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' => '...
1
vote
0
answers
885
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
1
answer
949
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 ...
1
vote
1
answer
86
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
500
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
426
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
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 ...
0
votes
1
answer
283
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
106
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 ...
-1
votes
1
answer
92
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
436
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
682
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
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 ...
0
votes
1
answer
633
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
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 ...
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 ...
0
votes
1
answer
660
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
269
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
318
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
92
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 ...
-2
votes
1
answer
154
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
507
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
54
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
578
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
1k
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
155
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
86
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
58
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
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....
1
vote
1
answer
918
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
300
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
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 ...
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 ...
0
votes
1
answer
45
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
546
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
129
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
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 ...
0
votes
0
answers
235
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
547
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
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 ...
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 ...