-
AuthorPosts
-
October 16, 2014 at 11:54 am #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 charactersSo 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!
ClausOctober 17, 2014 at 5:12 am #337141Hi 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,
IsmaelOctober 17, 2014 at 11:30 am #337234Hi 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
ClausOctober 28, 2014 at 6:48 am #342021Hi 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,
JosueOctober 28, 2014 at 11:28 am #342144Thanks Josue, I’ll give it a try … have a nice day!
October 28, 2014 at 5:46 pm #342340Great, let us know how it goes :)
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.