Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bootstrap-theme]

Use it for questions about the Twitter Bootstrap base theme.

0
votes
1answer
9 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 ...
-2
votes
1answer
20 views

I can't get Views Bootstrap carousel to slide

Does anyone running Drupal 8 with Bootstrap 4 have an example of a functional Bootstrap carousel? I have been using the Views Bootstrap module to create views and display the slideshow (have tried ...
0
votes
0answers
29 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 ...
0
votes
0answers
30 views

The bootstrap modal-backdrop won't disappear after submit, how to solve this?

I'm using Drupal8 installation with the Geysir module in combination with the bootstrap theme. When I add a new paragraph with Geysir (click on the + icon) bootstrap shows it's first modal: now I can ...
0
votes
1answer
35 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
0answers
65 views

How to install Barrio Boostrap SASS subtheme with composer?

So, I'm just getting my feet wet with D8 and composer and was trying to get started with the composer flow and management. I proceeded with an installation with the generic project template with ...
-1
votes
2answers
106 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
0answers
38 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
0answers
27 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
1answer
37 views

Import test data to theme? [closed]

I'm quite new to Drupal, and I'm still in learning process. I've installed a pure Drupal 8, and installed a the YG Agency theme. Right now the theme is only blank. Is it possible to load some test ...
0
votes
0answers
19 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
0answers
17 views

FilterAlign not called

Drupal 8.5, Bootstrap subtheme. I'm displaying a node field, node.field_description, in a page template. That field is created with a 'full html' text area, and may contain 'data-align: "right"' if ...
0
votes
0answers
11 views

Adding a bootstrap panel to a controller's render array output

I want to add a bootstrap panel (https://drupal-bootstrap.org/api/bootstrap/templates%21bootstrap%21bootstrap-panel.html.twig/8) to the output of my controller. My active theme is a drupal/bootstrap ...
1
vote
1answer
79 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
1answer
56 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
2answers
65 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 ...
0
votes
1answer
40 views

How can I control class=“active” in a submenu

I have a view with several exposed filters, they work fine. I added the unfiltered view in the main menu. Then I copied the urls of the filtered results to add them as submenu. The "active" class is ...
0
votes
1answer
31 views

How to move Contextual Links?

Added a wrapper inside a block.tpl.php called block-content: <section id="<?php print $block_html_id; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> ...
0
votes
1answer
37 views

How to show tooltips using a bootstrap sub-theme in a views filter?

I am using the bootstrap Tweme theme and would like to show tooltips when hovering over exposed filters (e.g. haslanguagecertificate) in a view. When hovering over profile edit fields the help text is ...
0
votes
0answers
33 views

Change custom menu titles from h2 to h3 in Bootstrap subtheme

I have created a Bootstrap subtheme in D8. I had no problems changing or editing what I wanted for Blocks, Branding or any other template files. However, I can't seem to figure out how to change the ...
1
vote
0answers
269 views

How do I use the Bootstrap 4 mobile menu in a Drupal 8 theme? [closed]

I am trying to make a Drupal 8 theme from an existing HTML page. The page uses the Bootstrap 4 menu. I was able to get the normal version (desktop) of the menu working by copying menu--main.html.twig ...
0
votes
1answer
432 views

Add .active class to a menu link when other menu link is clicked

I have following scenario: Drupal 8.5.6, with a bootstrap subtheme. There are 2 menus (I'll call them main menu and secondary menu). The links in the main menu are geographic areas, I've managed to ...
0
votes
0answers
7 views

Why do some bootstrap classes disapear when i translate some elements?

I noticed that when using drupal in english with bootstrap theme, some buttons have a btn-success class which give them a green styling <div class="form-actions form-wrapper form-group" id="edit-...
-1
votes
2answers
76 views

Bootstrap form input size is not respected

For example: At /user/login both the username and password input fields include an HTML attribute size="60". In Bartik, the fields have a fixed width. In Bootstrap, the fields are stretched to fill ...
0
votes
2answers
41 views

How do I add an image field to my node.tpl.php template using render($content['field_example'])?

I am creating a Bootstrap sub-theme and want to customize my node.tpl.php template. I have an image field with a machine name of 'field_poster'. According to the default node template: $content: An ...
0
votes
1answer
15 views

Field help text is printed as input field title, not in separate field

On Bootstrap theme add field Text, give it any Help text, save it and you get empty field, but if you hover on the field it shows the help text on mouse tooltip. But if you e.g. make list field (text)...
0
votes
1answer
67 views

Drupal 7 Bootstrap Subtheme update

I'm trying to understand the flow of the bootstrap subtheme. The subtheme on my site was originally installed by a developer. I have since edited the css file to my liking and made adjustments to the ...
0
votes
0answers
79 views

How to inject a new variable into a menu template

I have a menu with a machine name of menu-principal, which in turn has a theme hook of menu__menu_principal and a template of menu--menu-principal.html.twig. I'm trying to inject another menu into the ...
0
votes
1answer
47 views

Reload js behaviors after click

I'm using boostrap 3 with modals. I've a button that opens a modal, in the modal there are some facet blocks. The view has ajax enabled, so when I click on a facet the page is not reload but are ...
0
votes
0answers
36 views

How to set the classes used in Drupal commerce buttons with Bootstrap theme

I am working on a site with Drupal commerce, I use the Bootstrap theme and a child theme. I would like the [add-to-cart] button to have the "btn-default" class, instead of “btn-success". Actually, I ...
0
votes
1answer
44 views

How can I uncollapse a footer menu?

I'm theming with Boostrap right now in Drupal 8 and created a footer menu with a bunch of links. The menu is displaying collapsed right now, but I want it to be uncollapsed and display like a default ...
0
votes
0answers
17 views

How can I make my footer menu not collapsed?

I'm theming boostrap on Drupal 8, but for some reason my footer menu I created is collapsed. How can I make it so that all the menu links display in one horizontal line like a regular navbar?
0
votes
0answers
45 views

Column settings per grid item

Is it possible to create a template for the grid with a varying grid css classes per item. Fx like this: <div class="col-xs-12"></div> <div class="col-sm-6"></div> <div ...
2
votes
1answer
40 views

Drupal Node Display Main Image or Video not both

We have a content type that in addition to the body field it has a field for Image and another field for Video. Both video and image are currently displayed at the top of the node, in Node > Manage ...
1
vote
1answer
33 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
0answers
39 views

How can I set the icon used in th “add to cart” button

I am building a website with Drupal commerce, using the BootStrap theme. The button is set like this: <button type="submit" id="edit-submit--3" name="op" value="Ajouter" class="btn btn-success ...
-1
votes
1answer
37 views

What is this markup in node.html.twig?

In node.twig.html (Bootstrap) I am seeing the code below and I am unsure of it's purpose. It is causing a problem with a view mode that I need to theme. Is it important? Can I get rid of it? <h2{...
3
votes
2answers
346 views

How to install with composer external library that drupal module depends on

Module bootstrap_languages depends on external library of same name how do we ask composer to require the external library that needs to go to libraries/bootstrap_languages folder The project's ...
0
votes
1answer
125 views

Different Front Page for Visitors

I am looking to create a custom front page for users that are visiting the site. This is a landing page in a way, which will encourage users to register and has different CSS. Once a user is logged in ...
1
vote
1answer
110 views

How to display a node field value in a template file?

I added a custom field in the ‘article‘ content type. I am using bootstrap as a theme. I want to print that field value as a css class in the h1 element of every node of type : article So I ...
0
votes
0answers
43 views

How to override vendor-prefixes.less

In my project I'm using bootstrap as base theme and created subtheme for the project. But when I inspect the page elements in chrome browser it showing some additional css file reffering the elements ...
0
votes
0answers
27 views

Block layout in a view

I do not seem to understand block layout in views in D8 (Bootstrap theme): I have some content organized in tags, with a menu built with Taxonomy Menu module, but in taxonomy term views Language ...
0
votes
0answers
32 views

favicon shortcut not working on mobile phone

I am setting up a drupal8 site and created a custom theme of Bootstrap. I would like to have a shortcut on my mobile with the favicon used by mytheme. it works in Chrome on my laptop. But it doesn't ...
0
votes
1answer
65 views

Add View Mode to Body Class

Is it possible to add the view mode being used for a display into the body class? At the moment the view mode is being inserted into one of the region classes, but I would like to add it also to the ...
0
votes
2answers
126 views

Change Bootstrap column classes based on the result of a view

I have a D8 site with a Bootstrap 3 subtheme and two columns with one region and a block inside each. I need to change the first column width (col-md-12) to take 100% width when the view block in the ...
0
votes
1answer
112 views

How do I set up jumbotron so that I can control it through a panel?

I am using the Panels and Panels Bootstrap modules, and I would like to have a Jumbotron block in a couple of pages. How do I set it up so that I can control it through a panel, like shown in Drupal ...
0
votes
0answers
20 views

Adding another toggle menu

I just started using the Bootstrap theme. I just cannot figure out how to separate the language menu from the toggle menu displayed for mobile users. <?php if (!empty($primary_nav) || !empty($...
0
votes
0answers
74 views

How to load a page inside modal bootstrap? [duplicate]

I'm looking for a way to dynamically load a page created using controller inside modal bootstrap. Any suggestion to achieve this is much appreciated? Thank you.
0
votes
0answers
13 views

Theme doesn't appear to be enabled, but still in use

I ran into this problem the other day on a Drupal site when trying to update its theme.. For some reason the main theme being used - bootstrap - and custom theme - bootstrap_subtheme - don't appear to ...
0
votes
0answers
352 views

The specified library “bootstrap/drupal.ajax” does not exist

I'm trying to separate a multisite instance in to separate websites. I created two separate instances and moved custom themes and contrib modules in to site specific folders. When I try to load the ...