Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1488688

    add_filter( ‘avf_masonry_excerpt_length’, ‘masonry_excerpt_length’);
    function masonry_excerpt_length() {
    $excerpt = 5000;
    return $excerpt;
    }

    i need a function to allow html tags in this excerpt!!
    i have tested some plugins and some codes, but they dont work..

    #1488698

    Hey Christian,

    Thank you for the inquiry.

    Try to add this filter in the functions.php file to keep the html in the excerpt, but make sure not to add < link > tags to the html because it will break the masonry element.

    function avf_custom_masonry_loop_entry_content_mod($loop_excerpt, $entry) {
      $loop_excerpt = $entry->post_excerpt;
      return $loop_excerpt;
    }
    add_filter('avf_masonry_loop_entry_content', 'avf_custom_masonry_loop_entry_content_mod', 10, 2);
    

    Best regards,
    Ismael

    #1488699

    Hey Christian,

    Thank you for the inquiry.

    Try to add this filter in the functions.php file to keep the html in the excerpt, but make sure not to add < link > tags to the html because it will break the masonry element.

    function avf_custom_masonry_loop_entry_content_mod($loop_excerpt, $entry) {
      $loop_excerpt = $entry->post_excerpt;
      return $loop_excerpt;
    }
    add_filter('avf_masonry_loop_entry_content', 'avf_custom_masonry_loop_entry_content_mod', 10, 2);
    

    Best regards,
    Ismael

    #1488703

    seems to not work

    #1488705

    here is the access

    #1488706
    #1488709

    Hi,

    As mentioned above, you should not add link tags to the excerpt, as it will break the site layout. Looks like you’re trying to use button row shortcode, which creates links and breaks the masonry element. We recommend disabling this modification. The following html will also break the masonry element.

    <a href="https://neu.balikci-schmidt.de/allgemein/dr-roswitha-koenigswieser-im-gespraech-3/">Klick mich</a> <a href="https://neu.balikci-schmidt.de/allgemein/dr-roswitha-koenigswieser-im-gespraech-3/">Aufruf zum Handeln</a> <a href="https://neu.balikci-schmidt.de/allgemein/dr-roswitha-koenigswieser-im-gespraech-3/">Klick mich</a>
    

    Best regards,
    Ismael

    #1488710

    but i need links

    #1488711

    that are a tags, not link

    #1488712

    i have updates the to version 7, now no links more

    #1488714

    ok. with links it dont work?

    #1488716

    we can close the thread

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘post masonry excerpt’ is closed to new replies.