This forum is for assistance with theme development.

Date Time displays different times

In my twig template for Events I currently have date listed 3 ways:

template_from_string doesn't work

Hi,

I'm trying to allow the user to create a template in a field (type-long, formatted) on a node page, including {{ twig }} within the the string that will be in the field.

If I understand the Twig documentation, I should then be able to call {{ include(template_from_string(node.field.value)) }} to use the content of the field. I would then be able to pass in custom variables, etc. within the theme template.html.twig.

How to customize the display of the form for creating or modifying a type of node ?

I created a template for my nodes of type "article" node--article--full.html.twig

I want to create a template to customize the form for creating and modifying article type nodes. But I can not find a name suggestion for my template. Why is there no suggestion for the form ?

I have tried the template below but the form content does not appear.

node-edit-form.html.twig :

<article{{ attributes.addClass('node--edit node--article--edit') }}>

Breakpoints

Hello,

What breakpoints I supposed to declare inside the breakpoints.yml?

Only the breakpoints which image's change, so I have two, one for mobile and on for desktop and wright the rest media queries inside the responsive image style style with srcset or all of them?

Thank you.

Rewriting View with static content(AMP)

1. How to rewrite static image in amp which have given path in global-custom text(View as block). I want to change this Static image in AMP image in sub theme without changes in Custom theme or view.

2. In which theme preprocess we get data of slider in footer address

3. How to change webform attribute action To action-xhr with post method through custom code

4. Can I get menu array separately in theme preprocess  So that customize in AMP

Float Left for Bootstrap Columns

I've been coding sites locally with Bootstrap outside of Drupal. Once I have the site at a point that I deem to be complete (visually behaving how I want), I then setup a localhost Drupal 8 build and start 'twigging' things together in conjunction with my Bootstrap ready css.

One thing I keep noticing within my Drupal builds is that I have to add "float:left;" to my .col  css.

Bootstrap (pre-Drupal)  behaves correctly without me having to do that, but once inside the Drupal environment I have to specify it in my custon .css in order for it to work correctly.

Pages

Subscribe with RSS Subscribe to RSS - Theme development