This forum is for assistance with theme development.

problem with drupal 8 theme

when i install fresh drupal 8 and  install this theme:

https://www.drupal.org/project/yg_flew 

all look like some of files dont copy correctly,

link for test: https://zafitest2.vipserv.org/ 

anyone use this theme and its loook ok ? 

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 ?

Pages

Subscribe with RSS Subscribe to RSS - Theme development