Questions tagged [bootstrap-theme]

Use it for questions about the Drupal Bootstrap base theme.

Filter by
Sorted by
Tagged with
0
votes
1answer
82 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
0answers
12 views

how to display field in Hook_preprocess for the template file

I am trying to display following field to the tpl.php file. However, I do not know how to display this field. $form['ExStart'] = array( '#type' => 'value', '#value' => $overallstart, )...
0
votes
1answer
28 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
2answers
33 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
0answers
22 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
0answers
316 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....
0
votes
0answers
11 views

What is the right approach to create a block in a bootstrap theme?

I have a non-Drupal bootstrap 3 theme. I like one of its sections, which I would like to use in my drupal bootstrap theme. I am little confused how I should do it. One simple way is to create a block ...
0
votes
0answers
10 views

maintenance-page.tpl.php is replaced per page--node.tpl.php

My template maintenance-page.tpl.php or the default maintenance-page.tpl.php is replaced per the page--node.tpl.php of my theme. I have check in my setting.php $conf['maintenance_theme'] = 'Mytheme';...
0
votes
0answers
27 views

How to move Js to header using hook_js_alter

Hi I am trying to move js from footer to header but I am getting exception like Exception: Invalid JS asset type. in Drupal\Core\Asset\JsCollectionRenderer->render() (line 90 of D:\Users\...
0
votes
0answers
21 views

How to move js in header from footer in D8 [duplicate]

I am using twitter bootstrap theme in drupal 8. By default bootstrap.js and jquery.js loaded in footer. I want to override the order of these js and place in header. Please let me know if its ...
1
vote
1answer
120 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
1answer
77 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
0answers
26 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
1answer
25 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
20 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
47 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
156 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
35 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
27 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 ...
0
votes
1answer
201 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
88 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
165 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
0answers
46 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 ...
1
vote
1answer
603 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
45 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 ...
0
votes
2answers
941 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
146 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
105 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
82 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
26 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: ...
1
vote
1answer
131 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
454 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
3answers
218 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
104 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
50 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
86 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 ...
1
vote
0answers
670 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
1k 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 ...
-1
votes
2answers
212 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
196 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
23 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
287 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
1answer
405 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
107 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
62 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
81 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 ...
2
votes
1answer
60 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
45 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:...
-1
votes
1answer
46 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{...