This forum is for assistance with theme development.

Background hero image using a view (image style not rendered)

Hi all,

I have a problem which I can use your expertise. I have a page and that page has a hero image. The hero image is a background image. The way I did this is the following. 

  • I have a region called hero image.
  • I created a image field (hero-image) on the page, formatter focal_point and excluded it from display
  • I created a view (block) with contextual filter of the node being viewed.
  • I created a twig override for the image field called views-view-fields--hero-image.html.twig

In that file I have this code:

Where do I place bootstrap 3 class in this template?

I am trying to implement the bootstrap 3 class listed below in a bootstrap 3 subtheme so I can make my embeds responsive. Every time I add the class below it causes my embeds to disappear. Where would I place these classes in a bootstrap 3 theme subtheme?

These are the classes from the bootstrap website:

<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

This is my template file: field--iframe.html.twig

Install custom theme with composer. How to do that ?

Hello !

I used this website to help me installing and managing my drupal 8 installation : 

https://www.lullabot.com/articles/drupal-8-composer-best-practices

It's very cool regarding module installation too.

But I searched a lot, I can't understand how to create my own drupal 8 theme and install it on my drupal 8 website using composer ? 

Where should I put my theme files ? And then what should I do to install it with composer ?

How do you place the login option on a dedicated page?

Hello,

I'm new to drupal and i'm trying to get the option to login on a dedicated page.
I can't figure out how. 

I'm using drupal 7.59 and the nexus theme. 

Any solutions?

Can't install theme based on Classy

I'm using 8.5.3, and trying to follow the guide for creating a classy subtheme at https://www.drupal.org/node/2165673

I have created a sub-theme of classy, exactly as described, but with a different name. It doesn't appear in admin/appearance.

Here's the tree of my theme:

Pages

Subscribe with RSS Subscribe to RSS - Theme development