Dears,
I've installed the great theme (Bootstrap), but when I add the content as Article (content type) with images, all content and website to be responsive on mobile version except images, where I don't use any module for responsive images,
please your support.

Thanks a lot,

Comments

markhalliwell’s picture

Status: Active » Closed (won't fix)

edit: sorry, premature response.

Argus’s picture

This is how I first did it. I wanted to add the .img-responsive class Bootstrap uses to the image field. I installed the Image Class module (and it's dependencies), and added the class to the field.
But I ended up using a preprocess function in my subtheme to add that class to all image fields: Read more here.

markhalliwell’s picture

Title: images is not responsive » Provide setting to make images responsive
Category: Support request » Feature request
Status: Closed (won't fix) » Active
markhalliwell’s picture

Title: Provide setting to make images responsive » Provide setting to choose image shape and allow images to be responsive

  • Commit a409387 on 7.x-3.x by Mark Carver:
    Issue #2186973 by Mark Carver | mbawazir: Provide setting to choose...
markhalliwell’s picture

Version: 7.x-3.x-dev » 8.x-3.x-dev
Assigned: Unassigned » ryan.armstrong
Status: Active » Needs review
Argus’s picture

That seems to work fine, thanks!

PascalAnimateur’s picture

There seems to be a problem in image.vars.php at line 17 ... I get the following php error :
[] operator not supported for strings

This breaks my sites pretty badly (WSOD).

markhalliwell’s picture

That is because some module is passing the class attribute as a string instead of an array (they should always be an array). You should backtrace which module (obviously one that also preprocess images) is causing this and file an issue there.
https://www.google.com/search?q=drupal+class+operator+not+supported+for+...

PascalAnimateur’s picture

Status: Needs review » Closed (works as designed)

Thanks Mark, it turned out to be languageicons. I'll submit a patch there...

markhalliwell’s picture

Status: Closed (works as designed) » Needs review

This needs to remain open.

markhalliwell’s picture

  • Commit a409387 on 7.x-3.x, 8.x-3.x by Mark Carver:
    Issue #2186973 by Mark Carver | mbawazir: Provide setting to choose...

  • Mark Carver committed a409387 on 8.x-3.x.x
    Issue #2186973 by Mark Carver | mbawazir: Provide setting to choose...
markhalliwell’s picture

Version: 8.x-3.x-dev » 7.x-3.x-dev
Assigned: ryan.armstrong » Unassigned
Status: Needs review » Closed (fixed)

I'm just moving this back to 7.x. If this needs re-evaluation in 8.x, create a new issue.