-
AuthorPosts
-
May 30, 2018 at 2:15 pm #964265
Hi,
please take a look at this post of mine and its solution at the bottom:
https://kriesi.at/support/topic/how-to-show-manual-exerpt-above-single-posts-content/This solution worked fine before ENFOLD v4.4, but in 4.4 this manual excerpt box is shown below the content of a single post instead on top of it.
I have added this
// show manual excerpt only if there is one if ( is_single() ) { if ( $post->post_excerpt ) echo '<div class="manualexcerptbox opacity-off"><h2>kurz<span class="special_amp">&</span>bündig</h2><div class="inner"><span>' . get_the_excerpt() . '</span></div></div>'; }
in loop-index.php around line 274 between
echo '</header>';
and
// echo the post content echo $content_output; echo '<footer class="entry-footer">';
I use “default business” blog layout! Single posts are made with normal WP editor, not ALB.
Since the loop-index.php has changed a lot in v4.4, this old solution snippet might be the wrong place in the loop-index.
Could you please give me the right place where to add this snippet now?Thanks.
June 2, 2018 at 5:21 pm #965909Hey Gitte,
I tested your code:// show manual excerpt only if there is one if ( is_single() ) { if ( $post->post_excerpt ) echo '<div class="manual-excerpt">' . get_the_excerpt() . '</div><div class="hr hr-short hr-center avia-builder-el-9 el_after_av_textblock avia-builder-el-last "> <span class="hr-inner "> <span class="hr-inner-style"></span> </span> </div> '; }
on the includes > loop-index.php file, line 171 just above:
$content_output = '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>';
using “default/business” blog layout
and it seem to work good:
Best regards,
MikeJune 4, 2018 at 1:56 pm #966502Thanks … not quite … I need it right before the content and AFTER the postmeta infos.
To take your example from your screenshot, it should be:thanks.
June 5, 2018 at 3:22 am #966940Hi,
I see, try line 276, right above:// echo the post content echo $content_output;
Best regards,
MikeJune 5, 2018 at 5:06 pm #967315Now I got it, thanks a lot. You can close this ticket now.
June 5, 2018 at 8:20 pm #967439Hi Gitte,
Glad that Mike helped you. :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘ENFOLD 4.4: How to show manual exerpt above single post's content’ is closed to new replies.