Closed djzwerg closed 3 years ago
I want to style the output of [field_title] to a heading (h2) so I tried this:
<div class="<?php print implode(' ', $classes); ?>"<?php print backdrop_attributes($attributes); ?>> <div class="content"<?php print backdrop_attributes($content_attributes); ?>> <h2><?php print render($content['field_ueberschrift']); ?></h2> <?php print render($content['field_inhalt']); ?> </div> </div>
but it doesn't work. Maybe it is a duplicate of https://github.com/backdrop-contrib/paragraphs/issues/37?
Oh just my fault. I missed the second "-" in the filename (paragraphs-item--text_formatiert.tpl.php)
@djzwerg Glad you got it sorted. You can also use Field Wrappers for a non-code solution.
I want to style the output of [field_title] to a heading (h2) so I tried this:
but it doesn't work. Maybe it is a duplicate of https://github.com/backdrop-contrib/paragraphs/issues/37?