can't remove height/width from images

Hello,

i'm developing a drupal 8 site with a custom theme, when i upload images in the content  > Basic page i cant remove the height and width from the inserted image's.

i have tried:

function customtheme_preprocess_image(&$vars) {
if ($vars['style_name'] == 'IMAGE_STYLE_NAME') {
// Remove explicit width & height declaration.
unset($vars['width'], $vars['height'], $vars['attributes']['width'], $vars['attributes']['height']);
}

}

But that did not help, has somebody sugestions for me?

What is the difference between the "Field Group" module and the "Paragraphs" module ?

What is the difference between the "Field Group" module and the "Paragraphs" module ?

How to correct the error “No active batch.”?

How to correct the error "No active batch." ?

This error appears almost every time I check for translation updates or process multiple operations at the same time. It appeared 2 or 3 months ago.

No active batch.

https://i.stack.imgur.com/lCe21.png

Change available options on entity reference field via AJAX

Hello,

I want to build a page for a sports league and I have a content type "game" that can be used to describe a game. It has the following fields with corresponding field types in brackets:

I can't restore backup

I'm moving website to another server. I uploaded Drupal and I'm trying to restore backup of entire site. Unfortunately, I have this message:

"Please install the Defuse PHP-encryption library via Composer to be able to encrypt backup files."

I do not use composer. What can I do?


Opportunity for a Drupal developer / hoster

Dear All

I'm retired and started designing websites for charities (as a hobby) which in turn has led me to accumulate 5 paying clients which brings in around £100 a month (in hosting fees) and an additional £100 a month in tweaks/changes. Over the 2 years I've done it, the mini-business has brought in just shy of £15,000 of design work.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x