-
AuthorPosts
-
May 17, 2022 at 2:52 pm #1352092
Hallo zusammen,
ich hoffe, es ist okay, wenn ich in deutsch schreibe.
Ich habe für meine Blogartikel das Element MASONRY gewählt.
Wie kann ich hier auf den Vorschaublogbildern einen Text mit “MEHR LESSEN” erstellen?Vielen Dank und viele Grüße
MelanieMay 18, 2022 at 7:43 am #1352147Hey Melanie,
Thank you for the inquiry.
Please check the filter that @Mike provided in the following thread.
// https://kriesi.at/support/topic/add-button-to-the-masonry-post/#post-1311784
The filter should append a read more text to the masonry content.
Best regards,
IsmaelMay 18, 2022 at 8:34 am #1352151Hallo Ismael,
das funktioniert leider nicht. Ich habe es eingefügt und es hat sich nichts verändert.
Muss der Filter an eine bestimmte Stelle in der functions.php? Ich habe es einfach unten angefügt.
Gibt es noch andere Ideen?LG
MelanieMay 19, 2022 at 7:30 am #1352237Hi,
Did you enable the masonry excerpt? The filter above will only work when excerpt is enabled.
If you need the read more text inside the masonry image, try to edit the enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php file and look for this code around line 650.
$bg = '<div class="av-masonry-outerimage-container">'; $bg .= $img_before; $bg .= "<div class='av-masonry-image-container' {$img_style} {$outer_title} {$outer_alt}>"; $bg .= $img_html; $bg .= '</div>'; $bg .= '</div>';You can place the read more text after this line.
$bg .= $img_html;Best regards,
IsmaelMay 19, 2022 at 8:21 am #1352245Hi Ismael,
es hat funktioniert! Tausend Dank!
Melanie
May 19, 2022 at 9:07 am #1352267 -
AuthorPosts
- The topic ‘Blog mit Masonry’ is closed to new replies.
