For a relation field I use tempalte from depot Portfolio Column Click here to link...
I used this tempalte on my sites old version where it worked fine and was resizing iamge autoamticaly. Click here to link... look a girl image below video which is repeating 4 times.
But When I use it on new site I get this Click here to link... again iamges below video. As you can see images are not resized and users see only part of image and it is weird. I did not made any changes to template so I thinks there is some problem but I can't figure out what it is.
So is there solution to manualy give width and height to image field in this tempaltes php file?
This is how iamge field is called in this template:
<div class="image ribbon-wrapper-green">
<?php if($item->featured):?>
<div class="ribbon-green"><?php echo $fetaured_text;?></div>
<?php else: ?>
<div class="ribbon-empty">.</div>
<?php endif; ?>
<div class="image-wrapper">
<?php
foreach ($img_field as $key1 => $value1) {
if(isset($item->fields_by_id[$value1]))
echo $item->fields_by_id[$value1]->result;
}
?>
</div>
</div>
For a relation field I use tempalte from depot Portfolio Column Click here to link...
I used this tempalte on my sites old version where it worked fine and was resizing iamge autoamticaly. Click here to link... look a girl image below video which is repeating 4 times. But When I use it on new site I get this Click here to link... again iamges below video. As you can see images are not resized and users see only part of image and it is weird. I did not made any changes to template so I thinks there is some problem but I can't figure out what it is. So is there solution to manualy give width and height to image field in this tempaltes php file? This is how iamge field is called in this template: