Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #336714

    Hi support,

    while getting to work with your theme I would like to thank you for this absolutely great piece of work!!!

    I use:
    – enfold child theme
    – a masonry element to display a catogery of posts.
    – every single masonry element displays the content of the post with a limitation of something about 60 characters

    So here are my questions:
    1. I would like to display the whole content of the post (including the images placed within the post’s text).
    What changes do I have to apply to which code? I don’t want to use the excerpt part because it doesn’t support html tags.

    2. If displaying the whole post’s content is possible: Is there a way to _not_ include the link to the post itself? Which code has to be changed therefor?

    You can describe this as an attempt to display something similar to iconboxes in masonry style ;)

    Thanks in advance for your answer!
    Claus

    #337141

    Hi LarryLayouter!

    Thank you for using Enfold.

    1.) You can add this on functions.php to increase the limit of the masonry excerpt:

    add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10, 1);
    function avia_change_masonry_excerpt_length($length)
    {
     return  200;
    }

    2.) Which link are you trying to remove?

    Best regards,
    Ismael

    #337234

    Hi Ismael,

    thanks for your answer and the code; the code works partly. The post’s content is visible until it reaches the height of the masonry element … but every html tag such as line breaks etc. are stripped and – more important – the images placed (inside a div element) in the post’s text are not included in the excerpt.

    @ 2): If using masonry every masonry element gets it’s own link to the post itself; I would like to avoid this link.

    So if all this does not lead to the favored goal:
    is there a way to take the “fly in” effect used by masonry elements and apply it to icon boxes?

    greetz
    Claus

    #342021

    Hi Claus,

    Open /enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php and look for line 818:

    $this->loop[$key]['html_tags'] = array('a href="'.$this->loop[$key]['url'].'"','a'); //opening and closing tag for the masonry container
    

    Replace it by this:

    $this->loop[$key]['html_tags'] = array('div','div');
    

    Regards,
    Josue

    #342144

    Thanks Josue, I’ll give it a try … have a nice day!

    #342340

    Great, let us know how it goes :)

    Best regards,
    Josue

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