Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

_callout image_align not working anymore

Started by Muut Archive 12 years ago · 3 replies · 407 views
12 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

12 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) }}
12 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 2612 9 years ago
Archive · by Muut Archive, 9 years ago
2 1721 9 years ago
Archive · by Muut Archive, 9 years ago
2 5018 9 years ago
Archive · by Muut Archive, 9 years ago
1 3847 9 years ago
Archive · by Muut Archive, 9 years ago
3 1823 9 years ago