This forum is for assistance with theme development.

How to change Bootstrap Grid system to 960px

Im using Bootstrap theme for my Drupal7 website but i want to change the grid system to 960px in place of default 1200px . I found a trick but didn't work very well:

@media (min-width: 1200px) {
  .container {
    max-width: 970px;
  }

Please any help..

print $author according to user role commenter

hi, i want to print two codes for two roles

if the author will make the comment i want to print that code

print $author; 

and if others will make the comment i want to print that code

Drupal 8 image path in twig template

Hi,

I was wondering, how do you get an image from the images folder in a .html.twig template.
Is there something like in Drupal 7 path_to_theme() ?

Gr

Drupal 8 Template caching

Hello!!!

I need some help with the following problem:

In Drupal 8, I have a website that has a custom template for page and another for node.

I want to have 2 versions of these templates for mobile and for desktop. The problem is that despite the page template is rendered everytime the page is reloaded the node template is only run at the first time the page is build and after that loaded from the cache.

How to disable cache for theming

Hello,

I'm new here so forgive me if it's not the right place to ask this. And english is not my native language.

I'm completely new to drupal (8) and need to improve. I've never use drupal before so i'm a bit lost.
To understand template system i want to build my own theme to get used to twig logic.

But even before starting i can't success to disable the cache. Everytime i do some change on a template file (like htm--front.hmtl.twig) i have to clear the cache manualy from back-end admin.

Zurb Foundation + Codekit + local dev via git

Howdy all! Serious newb to the workflow, but I'm over on Pantheon now. So, I'm using the git method, and so I have a local install running off the remote db. Not sure how much that plays into this, but here's my problem:

Pages

Subscribe with RSS Subscribe to RSS - Theme development