Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

_callout image_align not working anymore

Started by Muut Archive 11 years ago · 3 replies · 287 views
11 years ago

I just updated to the latest version of grav 0.9.23 and Antimatter 1.3.8 and the image[underscore]align: right or image[underscore]align: left doesn't work anymore in the callout section of the page. The result is that the image ends up above and to the left the text instead of on the left or right of the text.

I tried to find information about the change and how I can get it working again but I couldn't and I also see the same issue in the antimatter one-page skeleton site demo on the getgrav.org homepage.

Please advice

11 years ago

Yes, I'm going to update Antimatter today with the fix. Basically we added an alt tag option to the html() method. So we changed from html(title, class) to html(title, alt, class)

You can fix quickly by editing the templates/modular/text.html.twig file, line 4:

TWIG
        {{ image.cropResize(400,400).html('','','align-'~page.header.image_align) }}
11 years ago

BTW just released updated version of Antimatter with this same very minor fix :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1326 9 years ago
Archive · by Muut Archive, 9 years ago
2 920 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago