Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1141312

    Dear Support
    after searching this support forum & google I´m a bit frustrated because I couldn´t find a solution for my problem with this magazin lay-out.

    My customer wishes to have a magazin blog lay-out which doesn´t exist in enfold:
    LEFT CONTAINER RIGHT CONTAINER
    image position left (column 33%) | post title + excerpt + read more link on the right (column 65%)

    I alreade managed to increase the image size on the left but can´t get the blog excerpts to be shown
    could you please help?

    link to the preview page in private content

    #1141477

    Hey Stanko,

    Please have a look at the following thread

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1141738

    Dear Viktoria
    thanks for the fast reply & link – which I already knew and tried this version but with no effect
    in that thread (from 2014) this folder path has changed:
    wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\magazine.php
    to this
    wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.php

    maybe that´s why this solution doesn´t work?
    +++++++++++++++++
    this is what I already tried: (Moderator Ismael: March 27, 2018 at 5:58 am)
    +++++++++++++++++
    Hi,
    Thank you for the info.
    Please look for this code around line 690.

    if(empty($this->atts[‘thumbnails’]))
    {
    $image = “”;
    $extraClass = “av-magazine-no-thumb”;
    }

    Below, add the excerpt.

    $excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( ‘avf_magazine_excerpt_length’ , 60) , apply_filters( ‘avf_magazine_excerpt_delimiter’ , ” “), “…”, true, ”);

    Best regards,
    Ismael
    +++++++++++++++++

    any other ideas?

    #1142537

    Hi,

    Thank you for the update.

    Yes, the content of that file has changed a bit. Please look for this code around line 955:

    if( $style == 'small' )
    			{
    				if(empty($this->atts['thumbnails']))
    				{
    					 $image = "";
    					 $extraClass = "av-magazine-no-thumb";
    				}
    			}
    			else
    			{
    				$excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 60) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');
    			}
    

    Replace it with this one:

    
    			if( $style == 'small' )
    			{
    				if(empty($this->atts['thumbnails']))
    				{
    					 $image = "";
    					 $extraClass = "av-magazine-no-thumb";
    				}
    			}
    
    			$excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 60) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');
    

    That will enable the excerpt for every items in the magazine element.

    Best regards,
    Ismael

    #1142745

    Dear Ismael, dear Viktoria
    thank you sooo much for your great support – it´s working !
    we can close this thread
    best regards
    Stanko

    #1142748

    Ups – almost done – now I see there´s no “read more” link / button… is it posible to show this under the excerpt?
    sorry

    #1143210

    Hi,

    You’re most welcome. Now, to add the read more link, add this code at the very end of last modification.

    $excerpt .= '<div class="read-more-link"><a href="'.get_the_permalink($entry->ID).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>';
    

    That should append the the read more link after the excerpt.

    Best regards,
    Ismael

    #1143253

    Dear Ismael
    great – you´re the best :-)
    thank you so much

    no you can close this thread

    #1143592

    Hi,

    Great, I’m glad that Ismael could help you out and thanks for the feedback. I’ll go ahead and close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Show excerpt in all magazine blog list with "Read More" link’ is closed to new replies.