-
AuthorPosts
-
May 8, 2022 at 8:22 pm #1350963
Hi
i need to mark up the Excerpt!You promised years ago to provide a solution by “add_filter” but still it seems that there isnt.
These threads dont provide a solution:
https://kriesi.at/support/topic/html-markup-in-excerpt-has-been-lost/
https://kriesi.at/support/topic/html-tag-in-excerpt/How can i make my Excerpt follow HTML without fiddling in the parent theme code?
kind regards
ElviraMay 8, 2022 at 10:34 pm #1350973can you try this snippet in your child-theme functions.php:
function my_avf_masonry_loop_entry_content($loop_excerpt, $entry) { $loop_excerpt = $entry->post_excerpt; return $loop_excerpt; } add_filter('avf_masonry_loop_entry_content', 'my_avf_masonry_loop_entry_content', 10, 2);
the original line in the enfold code is:
$loop_excerpt = strip_tags( $entry->post_excerpt );
the strip_tags is the reason for that loss.
May 9, 2022 at 6:44 am #1350993Hi,
@InSilentio: Please kindly try the filter that @Guenni007 provided above. Let us know if it helps.Best regards,
IsmaelMay 9, 2022 at 8:11 pm #1351075Yes, perfect.
Thank you @guenni007!!
@ismael
Maybe you want to take that into your documentation??Addendum:
For the same task i need some more advice.
-I added a new CPT – “classes”.
-I published a page called classes and i use a masonry element to call all posts from the CPT “classes”
-Now i got a 3 or 4 column page with a masonry, description & title as a layer over the image, vanishing on mouse over
– i give a custom CSS class for the masonry element – lets say “workshop”Questions
What are the selectors to:
1: Change the color and the transparency for the overlay
2: Change the font size or color of the description and title?
3: Change the single masonry element for changing borders, border-radius or so.add 4:
Is there a way to let the excerpt process Enfold-Shortcodes?
(I would like to have a button as a kind of “Read more) to every Masonry element)kind regards
Elvira- This reply was modified 2 years, 6 months ago by InSilentio. Reason: added something
May 14, 2022 at 10:26 am #1351749 -
AuthorPosts
- You must be logged in to reply to this topic.