Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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
    Elvira

    #1350973

    can 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.

    #1350993

    Hi,


    @InSilentio
    : Please kindly try the filter that @Guenni007 provided above. Let us know if it helps.

    Best regards,
    Ismael

    #1351075

    Yes, 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
    #1351749

    Hi Elvira,

    Sorry for the late reply. Could you post a link to the page where you are looking to make changes please?

    Best regards,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.