Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tried everything in this thread https://drupal.org/node/1536098 and the issue still persists. My theme is Corolla and whatever I do for the past 3 days (removing 'width' parameter and setting it in CSS as .galleria-container {width: auto;} ),it just does not work!
Comments
Comment #1
kingswoodute CreditAttribution: kingswoodute commentedTry
I'm using version 7.x-1.0-beta3
It works great and resizes dynamically. Hope this helps.
Comment #2
drupalina CreditAttribution: drupalina commentedI have found out that the Galleria stops working when you set the width to "auto" and if you have a custom template like node--article.tpl.php
In that template I do the following:
At the top I print
<?php hide($content['field_images']); ?>
In teaser I show only the first image and so I print
and in the full node I print
If you don't have a custom node--content-type.tpl.php then setting width to "auto" works and Galleriais responsive. But if you have a custom node--content-type.tpl.php and set the images using the above codes, then Galleria doesn't display at all.
Can anyone help? How to correctly print render the galleria in a custom node--content-type.tpl.php???
Comment #3
drupalina CreditAttribution: drupalina commentedOk, I got it to work just by adding [0] for the full node display:
Comment #4
drupalina CreditAttribution: drupalina commentedclosing the issue