Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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&uuml;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.

    #965909

    Hey 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:
    2018-06-02_111650

    Best regards,
    Mike

    #966502

    Thanks … not quite … I need it right before the content and AFTER the postmeta infos.
    To take your example from your screenshot, it should be:

    View post on imgur.com

    thanks.

    #966940

    Hi,
    I see, try line 276, right above:

                // echo the post content
                echo $content_output;

    Best regards,
    Mike

    #967315

    Now I got it, thanks a lot. You can close this ticket now.

    #967439

    Hi 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘ENFOLD 4.4: How to show manual exerpt above single post's content’ is closed to new replies.