Questions tagged [bootstrap-theme]
Use it for questions about the Drupal Bootstrap base theme.
115
questions
1
vote
1
answer
966
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
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 ...
-2
votes
0
answers
27
views
Show page content without header and footer
Actually I want to show the page of the content for specific custom abc.twig.html file excluding header and footer so, how I can achieve this.
in my page.html.twig file I have code.
<script>...
0
votes
0
answers
47
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 ...
1
vote
1
answer
515
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
2
answers
585
views
Install without Bootstrap CDN
I have the theme Bootstrap CDN 3.3.6 installed on my site and I use the appearance "Journal". How not to use the CDN maintaining the appearance "Journal" ? Thank you
I download on Bootstrap http://...
1
vote
1
answer
466
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 ...
0
votes
1
answer
4k
views
Bootstrap sub-theme override CSS
I just set up an new Drupal 8 website. I was used to use CSS injector on Drupal 7, but since the module is not ready yet, and I thought I'd better start with subthemes, I tried to create a new ...
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
2
answers
785
views
How do I create a sticky navigation bar in Open Social?
I'm using D8 and working on new theme in Open Social witch uses bootstrap/sass. In my theme I want the navigation bar (in the header region) to be sticky at the top of the screen.
I've made some ...
0
votes
1
answer
419
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 ...
0
votes
1
answer
785
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
votes
1
answer
83
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
163
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
128
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
187
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
105
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
130
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
58
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
228
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
217
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
813
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 ...
-2
votes
3
answers
6k
views
How to link/add custom CSS to bootstrap theme in Drupal 8
I am new to Drupal 8 and want to link a custom CSS file in my bootstrap subtheme. There is no way to link the CSS file in the theme.info.yml file. however, I was able to link my custom CSS in theme....
1
vote
1
answer
79
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
426
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
405
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 ...
-2
votes
2
answers
9k
views
How do I identify the version of Bootstrap?
There is a general solution on How do I identify the Bootstrap version? but I found it's not useful for Drupal, as I couldn't find the bootstrap.css file.
I think I found a bug in it. I want to ...
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
243
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
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 ...
1
vote
2
answers
602
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
564
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 ...
1
vote
1
answer
4k
views
How do I add a custom region?
How do I add a custom region in the bootstrap theme using Drupal 8?
I have installed a Bootstrap theme and now I want to add a custom region before the Header region. What should I add in the theme ....
0
votes
1
answer
1k
views
Turn off responsive behavior for Bootstrap 3
I know how to turn off responsive in bootrap . but how it can be in drupal theme. As i am using Drupal Bootstrap and created a subtheme. can that subtheme be non-responsive ??
1
vote
1
answer
60
views
Subtheme install settings in config but not showing
In a brand new site installation, I created a subtheme of the Bootstrap theme. In the subtheme (let's call "mytheme") config/install/mytheme.settings.yml file, I have the following settings.
settings:...
0
votes
0
answers
24
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
578
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
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 ...
0
votes
1
answer
267
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
83
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
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 %...
5
votes
4
answers
2k
views
Bootstrap 3, how disable auto-added Glyphicon?
I use Bootstrap (v3) with Drupal 8. When I create a button named "Search something", bootstrap adds automatically a "Search" Glyphicon. I do some web searches, but I don't find how "disable" (or hide?)...
0
votes
0
answers
152
views
Unable to get bootstrap working for IE8 on custom theme
I'm attempting to get bootstrap to work for a custom theme. It works fine in everything except for IE8.
The page in question has the following content
<div class="container">
<div class=...
2
votes
4
answers
11k
views
Responsive bootstrap grid with 6 columns of equal heights
In the front page of our website, I would like to list down groups led by researchers and each group is having a thumbnail picture and a title where the picture is of fixed width/height but, the title ...
0
votes
1
answer
638
views
Add a class to a field based on the page regions
I have my field tpl file which sets in a div classes 'field-item', 'odd/even' etc. I need to dynamically assign a class to it based on the regions that exist on the page. I am using bootstrap theme ...
0
votes
1
answer
1k
views
Bootstrap 3 sub theme - missing header for banner?
I am new with Drupal Bootstrap 3 sub theming, and I checked the view source and noticed:
<div class="main-container container">
<header role="banner" id="page-header">
</...
1
vote
1
answer
80
views
Allign block content next to title - CSS
My goal is to display a button group to the right of the page title. Currently it resides in region-content, which wastes space.
I tried adding my own class to the div that contains btn-group class ...
1
vote
1
answer
66
views
What would be best method to append bootrap css to non bootstrap themes but not affect layout? [closed]
I want to use Adaptive themes, I like the layout options, however, I like the Bootstrap look and feel.
So I want Adaptive theme layout css with boostrap visual css basically.
What would be the best ...
0
votes
2
answers
359
views
Hide Block on Particular Page with Bootstrap
I have a block called 'calendar' that I display on all events pages. events* such as events/today/, events/all/ etc.
A constraint that I have is that the block must be displayed on all events pages ...
0
votes
0
answers
326
views
Views slideshow is not being responsive in bootstrap theme
I created 3 images. Each image size is 1300 x 600.
I created content type SLIDESHOW.
I added 3 contents to the SLIDESHOW.
I created a views slideshows.
I applied my css as below:
.view-...