On my Drupal 8 site, on my home page, I need to embed a small bit of code. (The embed is a very small <script> block required by a Google service.)
On older versions of Drupal I could do this easily by just editing template page-front.tpl.php and adding the embed code. What is the equivalent on D8?
I am working bootstrap theme customization. I am getting below error in browser console and in site i am not able to see menu and other options and getting faded with white color.
1.Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript
2.Bootstrap requires pooper.js for dropdowns.
I am struggling with implementing a specific feature in my new website project and I'm hoping someone out there in the community can offer some guidance.
I have a Views page with a set of exposed filters for various categories/taxonomy terms that return teasers that link to the full node.
Each node has an image field with multiple values. By default in the view, I simply wish to show the first image from the mutifiield, which is fine for me to do in either the Views settings or calling {{ content.field_images.0}} in Twig.
I am trying to add a class name to a template field. The new class name will be constructed from the content name + other text.
Trying to get the content name from element['#object']['values']['info']['x-default']. Always comes up NULL. Using {{kint()}} to display the values on the screen.
I do not know how to access protected fields with twig, and my searches on drupal.org and google.com are not finding anything.