Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #430624

    Would you please show me how to set up my archive pages in the “small featured image, excerpt with read more” format? In other words I’d like my category/archive pages (e.g., http://skidrow.org/category/magazine-articles/ ) to look like http://skidrow.org/news/blog/ I see some discussion of it in other posts, but it’s not quite clear to me. Thanks!

    #431409

    Hey sky19er!

    Navigate to Dashboard > Enfold > Blog Layout and set the “Blog Style” to the single author, small preview pic style. The archives will take on that style as well.

    Regards,
    Elliott

    #431575

    Thanks, but then there’s no excerpt or read more tag.

    #432190

    Hey!

    Hmm, all of your posts are linking to external articles not located on your site. Not really sure how your doing that. Is it a plugin? Customization?

    Best regards,
    Elliott

    #432326

    Yeah, I’m handling that through the Page Links To plugin. But that doesn’t have anything to do with this, as far as I can tell — I deactivated that plugin and tested and nothing seems any different. The fact remains that if you go to Dashboard > Enfold > Blog Layout and set the “Blog Style” to the single author, small preview pic style, you don’t get any excerpts or read more links anywhere (on either the blog index or the category archives). And if you use the advanced editor method to get excerpts and read more links on the blog index, you get the full posts on the category archive pages.

    #432969

    Hey!

    Try opening up /enfold/includes/loop-index.php and change line 30 from this.

    $blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";
    

    To this.

    $blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "excerpt_read_more";
    

    Cheers!
    Elliott

    #433073

    Now we’re talkin! ;) I went to Dashboard > Enfold > Blog Layout and set the “Blog Style” to the single author, small preview pic style, and made the edit to the includes/loop-index.php file, as noted above, and that did the trick. Now, what if I needed to do that while still using the advanced layout editor blog element? In that case, with your code, I get the excerpt and read more links on the archive pages, but no thumbnail — can you add the thumbnail in that code snippet? Thanks so much!!

    #433652

    Hey!

    For the blog posts element there is an option where you can set to display the excerpt or the full post content.

    You said the thumbnails are not displaying? I checked your category magazine-articles and the thumbnails are displaying fine for me. Send us a link to the page where they are not displaying so we can get a better idea.

    Best regards,
    Elliott

    • This reply was modified 9 years, 8 months ago by Elliott.
    #433673

    Right, but when you use the blog post element, it only shows the thumbnails on the blog index — I’ve switched it back to that setting so you can see (e.g., http://skidrow.org/category/affordable-housing/). And if I use the other method, I lose the sidebar submenu and, since I handle my page titles manually, I lose the page title on the blog index.

    #434359

    Hey!

    I’m sorry but I’m not sure I understand. Can you take a screenshot and highlight the setting your using?

    Do you mean your using the “Advanced Layout Editor” option in Dashboard > Enfold > Blog Layout > Style?

    Go ahead and send us a WordPress login so we can get a better idea of what’s going on.

    Cheers!
    Elliott

    • This reply was modified 9 years, 8 months ago by Elliott.
    #434433

    Yes, I’m using the “Advanced Layout Editor” option in Dashboard > Enfold > Blog Layout > Style. I need to use that method so I can maintain the sidebar submenu on the main blog page and put other things in the body area of the main blog page. The code snippet you gave me added excerpts and read more links to my archives pages, I’m just hoping we could also add thumbnails on those archives pages (e.g., http://skidrow.org/category/affordable-housing/).

    I’ll send you a login in the following, private reply.

    #434442
    This reply has been marked as private.
    #435372
    #435490

    Oh, I’m sorry — I know I tried that (Peter’s post) before, but I thought it didn’t work for me, for some reason… OH! I see what it is! Peter’s snippet doesn’t add the excerpt and read more links. BUT, that snippet combined with Elliot’s tweak to the includes file above (April 22) gives me what I’m looking for — the thumbnails and excerpt and read more links on archives pages.

    Thanks guys!!

    Uh oh! It looks like Elliot’s snippet in the includes file was actually conflicting with my single posts pages — instead of showing the whole post, they were just showing the excerpt and read more link. So, back to the drawing board. Can we re-open this ticket? Now I’m back to needing excerpts and read more links on my category/archive pages (e.g., http://skidrow.org/category/affordable-housing/ ).

    • This reply was modified 9 years, 8 months ago by sky19er.
    #439080

    Hi!

    I checked your link but I see the thumbnails, excerpt, and read more link so it appears to be displaying how you want it. Can you take a screenshot and highlight what your trying to do so we can get a better idea?

    Regards,
    Elliott

    #439449

    I think maybe you were seeing a cached version from when I had Elliot’s snippet in the includes file. Again, with that snippet in there I got the excerpt and read more links on the category pages, but I would ONLY get the excerpt and read more links on the single posts, too, so I had to remove that snippet. But now I’m back to no excerpts/read more links on the category pages.

    http://skidrow.org/category/affordable-housing/

    Here’s what I’m seeing: https://www.evernote.com/shard/s320/sh/673274c3-4014-424c-b912-6a33cf87b4b1/9532930bbf9dde6a04a63b419bb1446c

    #440081

    Hey!

    Reset the modifications in the loop-index.php file, you can override it with a new one, then look for this code around line 52:

    $current_post['content'] 	= $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span>') : get_the_excerpt();
    

    Replace it with:

    if(!is_archive()) {
    	$current_post['content'] 	= $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span>') : get_the_excerpt();
    	} else {
    	$current_post['content'] 	= get_the_excerpt().'<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span></a></div>';
    	}

    Cheers!
    Ismael

    #440086

    Awesome sauce, Ismael — you’re the man!

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘archives not showing excerpt or featured image’ is closed to new replies.