This forum is for assistance with theme development.

Base theme for sub-theme

What theme do you recommend for creating sub-theme (I prefer simple css or less)? Im not very experienced, I know css, less, html, basic js. I use grunt. I'm using bootstrap at the moment but don't use its functionalities so there is no point using BS and it has a lot of code that makes my work complicated. I want to make simple website, gallery, info, contact, news etc. If possible i'm looking for a responsive theme that won't be deprecated in future Drupal versions.

help adding a style.css to child theme

I'm not getting how to create a sub-theme. I am just hacking Bartik. But I was trying to do it in a child theme. All I want is to add one style.css file so I can make some overrides to the default Bartik theme. Here is my info and libraries file.  I have my style.css saved in the same theme folder as the info and libraries files. 

Thanks for any help. It seems right, but I can't get it to load.

Check for empty Field

Hello.

New to twig adn drupal.

I am trying to check if a field has value and I use this code

{% if(content.field_info_simeio_synantisis) %}

which is alway true.

Shouldn't this be false from empty fields?

Mulitple image fild always return length of 2

Hello,

I am new to twig and Drupal.

I have an Image Field that can take multiple items.

The following code in twig laways retuns 2 even if there is not image submitted. 

{% for i in 0..node.field_periodic_image_gallery|length-1 %}

Souldn  't this return 0 when I have no image submitted?

How to create a CSS framework theme (non-bootstrap)

Hello,

may be you would have some suggestions examples - how to implement CSS Framework for a Drupal 8 theme...

I have never yet created a new Drupal themes, just been customizing some from Drupal ready submitted themes....

displaying the title of the subpage

I would like to add to the skin so that the name of the subpage is displayed in a given place, but I do not work?

<div id="name">
	<div class="layout-container">
		<h2>{{ title }}</h2>
		</div>
</div>

Pages

Subscribe with RSS Subscribe to RSS - Theme development