-
AuthorPosts
-
February 24, 2017 at 12:07 pm #751356
Hallo,
weiß jemand warum kein Auszug bei einem Post-Masonry mehr dargestellt wird? Er ist definitiv in den Beiträgen drinnen, jedoch wird er auf der Seite wo das Masonry eingebunden ist nicht ausgegeben.
LG Jens
March 1, 2017 at 8:24 am #753497Hey medienvirus,
Thank you for using Enfold.
The excerpts are not displaying because the content of the posts are created with the advance layout builder. Please edit the post then enable the Excerpt module in the Screen Options. Add the excerpt manually.
Best regards,
IsmaelMarch 3, 2017 at 9:39 am #754927Hi,
thank you for your answer. Unfortunately it doesn’t solve this issue. It’s getting even stranger.
1.) I deactivated the Advanced Layout Builder. Everything i put into the post dissapears.
2.) I saved the post nevertheless. (I have several copies)
3.) I put a text into the excerpt-field. (But this was also there before i done this…)
4.) I saved the post again.I tried several different methods from that (with re-activated Adanced Layout Builder, only with text-based posts, etc) – i always get the same weird result.
Now the weird thing:
1.) Every post is shown with the exact same excerpt on the site, where i included the masonry-post.What am i doing wrong? Why my complete post dissapears when i deactivate the advanced layout-builder.
In hope for help…
Cheers
JensMarch 3, 2017 at 5:17 pm #755212Hi,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.
There might be some corrupted files, so please delete all theme files completely via FTP, before installing a fresh copy from your themeforest account. Here is a short tutorial on how to install the theme via FTP, in case you are not sure how that works:
Best regards,
AndyMarch 3, 2017 at 7:31 pm #755299Hi,
i’ve tried everything you told me. Unfortunately with no solution. The only anomaly i had, was when i tried to deactivate the wpml-main plugin i get a grey site, with only a divider on top. you can test this by your own. if you activate it again the startpage is shown again.
Weird is, that it works if you take a look at the “beitrag 2” (See Link in the private-content). At the end if the content i implemented a post-slider. this works perfectly and shows for every post an individual excerpt.
Everything else you can find in the private-content area. If you are logged in, you can see the site. My issues are on the mainpage (startseite). Wheter german or english startpage. Even if i try to make a new site and start from scratch – same problem.
If you need any kind of further details just let me know.
March 6, 2017 at 4:58 am #756131Hi!
1.) I deactivated the Advanced Layout Builder. Everything i put into the post dissapears.
You should not disable the advance layout builder if you built the content with it. If you do, you have to re-create the content in the default editor. Please switch back to the advance layout builder then just add the excerpt as we suggested above.
Regards,
IsmaelMarch 6, 2017 at 11:28 am #756309This is exactly what i did. If you take a look, down in one of those excerpts of the wordpress-posts you will see that the excerpt is another than displayed on the mainpage.
March 6, 2017 at 4:24 pm #756482I know meanwhile what causes the Problem. I’ve implemented a code-snippet inside my functions.php in the child-theme, which i need:
add_filter('avf_masonry_loop_prepare','avia_change_default_link', 10, 2); function avia_change_default_link($loop, $entries) { foreach($entries->posts as $key => $entry) { if($entry->post_type == "post") { $more = "<br /><span class='masonry-more-link-arrow'>".__('Read more','avia_framework')."</span>"; $loop['content'] = avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 120) , apply_filters( 'avf_masonry_excerpt_delimiter' , " "), "…", true, '') . $more; } } return $loop; }
everything i need to know is how to rewrite those lines to get the excerpt to work. :)
March 7, 2017 at 6:41 am #756770Hi!
I’m sorry if I’m not clear enough. I edited one of the posts but the “Auszug” or Excerpt box is not enabled. I enabled it back and modified the masonry loop filter in the functions.php file. Please remove browser cache before checking the page.
Regards,
IsmaelMarch 7, 2017 at 4:19 pm #757067Thank you! :) Solved!
Here is the Code for others:
/* MASONRY READ-MORE WITH EXCERPT */ add_filter('avf_masonry_loop_prepare','avia_change_default_link', 10, 2); function avia_change_default_link($loop, $entries) { $more = "<br /><span class='masonry-more-link-arrow'>".__('Read more','avia_framework')."</span>"; $loop['content'] = $loop['content'] . $more; return $loop; }
March 7, 2017 at 8:13 pm #757219Hi,
thanks a lot for sharing! let us know in a new ticket if you need some more help with our themes. We’re glad to support you!
Best regards,
Andy -
AuthorPosts
- The topic ‘Auszug Masonry wird nicht dargestellt’ is closed to new replies.