This forum is for assistance with theme development.

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.

Concat and print a variable

Hello,

I wanted to concat 2 string to ouput a variable.

For example, I send an array "onglets" variable to a node--fiche-activite.html.twig that contains between 0 and 4 values.

I tried 

{% for key, onglet in onglets %}
   {% set mavar = "field_onglet_#{key+1}" %}
   {{ kint(mavar) }}
{% endfor %}

That output a String "field_onglet_1" to "field_onglet_4".

Now, I don't know how to concat to have the result content.field_onglet_1

How to ignore a style sheet with Drupal 8 ?

I have a drupal module that uses a style sheet that I do not need.

Here is its location :

    modules/contrib/private_message/css/private_message_notification_block.css

How to ignore a style sheet with Drupal 8 ?

Here is my file bootstrap_barrio_subtheme_front_office.info.yml

Is this the right location ? What should I replace contextual/drupal.contextual-links :

Stycky footer as "tunein"?

Hello

I deployed a Drupal 7.x installation time ago, for a webradio.

For the theming, I used Boot Press 7.x than I customized it

Now, the owner of the radio asked me whether is possible to create a sticky footer as Tuneine site, in order to avoid that changing the page, the audio is cut-off each time.

The only one method I know is with frames, but sicne HTML5 doesn't support them anylonger, I'm wondering if there is any alternative to them, to get the same result

Pages

Subscribe with RSS Subscribe to RSS - Theme development