Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
21 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 ...
-3
votes
0answers
16 views

Unable to import yml configuration

I tried to import yml configuration from the interface (Configuration synchronization) as well as Drush. But getting the following errors: I am using the bootstrap theme 8.x-3.17. Getting error in ...
0
votes
1answer
24 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
1answer
16 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 ...
-5
votes
1answer
46 views

How do I add GoogleFont? [closed]

I tested some tutorial like this : https://www.youtube.com/watch?v=4W8RGfMpVQ0 with no success and even worse, it had the effect of breaking the site (administration pages are no longer accessible). ...
1
vote
1answer
37 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
1answer
21 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
0answers
13 views

Two View Blocks don't line up in the same section

I am new to CSS and Bootstrap, I have two View Blocks using the display suite of a content type to display in the block. In Bootstrap Highlight Section I placed them, but they don't get placed in ...
0
votes
0answers
22 views

How can I render Glyphicons?

I am using Drupal 7 and a Bootstrap 3 subtheme; the Icon module is enabled. Glyphicon are not rendered. For example, with the following markup, I just get a rectangle with white borders <span ...
-1
votes
1answer
71 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
0answers
38 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
1answer
72 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 ...
-1
votes
1answer
130 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

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
1answer
338 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
1answer
39 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
votes
2answers
326 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
90 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
46 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
67 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
15 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
101 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
201 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
123 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
57 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
44 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
49 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
50 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
440 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
772 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
123 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
99 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
18 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
182 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
171 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
79 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
1answer
49 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
60 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
81 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
47 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
42 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
54 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
42 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{...
4
votes
2answers
702 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
252 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
353 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
66 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
1answer
83 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 ...