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
Melanie
Hey 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,
Ismael
Hallo 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
Melanie
Hi,
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,
Ismael
Hi Ismael,
es hat funktioniert! Tausend Dank!
Melanie