Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #439538

    I need a list of posts that looks like a Masonry grid. The limitation of words from text I kept with a few lines in the function.php:

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

    1. The posts listed are not related to the individual post pages . They should be fully displayed only in the grid .
    2. It would be ideal to insert line breaks to .

    Regardless always the Mobile menu should appear on every screen size .

    Thanks in Vorrraus and best regards
    Lukas

    #439991

    Hi LukasE!

    So your wanting the full posts to be displayed in the grid? You could try switching the contents of line 743 in the masonry_entries.php file.

    $this->loop[$key]['content'] 	= avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 60) , apply_filters( 'avf_masonry_excerpt_delimiter' , " "), "…", true, '');
    

    Maybe to this?

    $this->loop[$key]['content'] 	= $entry->post_content;
    

    Though I have not tested what will happen.

    Best regards,
    Elliott

    #442243

    That looks good – thank you.
    The single Posts in the masonry grid should not link to individual pages. How can the link to the pages removed?

    Kind regards,
    Lukas

    #442637

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #av-masonry-1 a {
      pointer-events: none;
    }

    Regards,
    Yigit

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