Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • #433584

    Dear Josue,
    a final and – perhaps – stupid question: If there will be an update with changes in the main
    themes/enfold/config-templatebuilder/avia-shortcodes/magazine.php,
    how will that work with the
    enfold-child/shortcodes/magazine.php?

    Many thanks,
    Yeti

    #433767

    Hi!

    I guess you mean if a new feature or option is added to the Magazine element (in a future version of Enfold), in that case, you won’t have it, as you’re using the child one, however a quick comparison and following merging could easily sort it out.

    Best regards,
    Josue

    #514670

    Can someone post the correct code for the full magazine.php that should be used to show the excerpt in the magazine display?

    I am having trouble understanding what changes need to be made.

    Thanks

    • This reply was modified 9 years, 2 months ago by hmsvictory.
    #514837

    Hi!

    That’s built-in, you can set to show the excerpt in the magazine element, this thread was about adding a read more link if i recall correctly.

    Cheers!
    Josue

    #514855

    My mistake then.

    What I’m looking to do is have a one line excerpt below each magazine post title. I don’t see an option for that on the layout builder screen. Only to show an excerpt for the larger first post.

    #514860

    Oh ok, simply edit magazine.php, look for this part:

    			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, '');
    			}
    

    Change it to:

    				$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, '');
    

    Cheers!
    Josue

    #918509

    There was never a clear explanation as to the fix on this issue. A moderator made a mod and didn’t post their work. Josue above shows a line of code one must search and replace, yet his change is exactly the same – character for character, I’ve compared, no difference! Can anyone please advise. I need the smaller magazine listings to show their excerpts.

    #919247

    Hi,

    Josue asks you to remove the
    else {
    }

    have you removed that?

    Best regards,
    Basilis

    #919685

    Works beautifully! Thank you!!! :)

    #920077

    Hi,

    Great, glad you got it working :-)

    Best regards,
    Rikard

    #1018347

    The best solution for this I found if you don’t want to modify the main theme files in case you were running a multisite or something.

    1. Go to widgets.
    2. Create a new custom widget area.
    3. Add the “Enfold Latest News” widget. If you run a child theme it will be named “child theme’s name Latest News”.
    4. Configure and Save.

    5. While in the advanced layout editor of a page or post, add a “widget area” element and select your new area.

    Two magazine elements with an Enfold Latest News widget beneath.

    On the left column, there is a magazine element. Below it is the Enfold Latest News widget.

    Now you can make them look the same or to your liking with css. Hide the image and the time with css. Then you can switch the date and title’s <div> order by using the following CSS. NOTE: Target the CSS to your element to avoid conflicts in other areas.

    .news-headline {
    display:table;
    }
    .news-time {
        display: table-header-group;
    }
    #1018437

    Hi talawar,

    Thanks for sharing, much appreciated :-)

    Best regards,
    Rikard

Viewing 12 posts - 31 through 42 (of 42 total)
  • You must be logged in to reply to this topic.