-
AuthorPosts
-
April 17, 2015 at 9:29 pm #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!
April 20, 2015 at 4:42 pm #431409Hey 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,
ElliottApril 20, 2015 at 8:27 pm #431575Thanks, but then there’s no excerpt or read more tag.
April 21, 2015 at 5:43 pm #432190Hey!
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,
ElliottApril 21, 2015 at 8:10 pm #432326Yeah, 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.
April 22, 2015 at 5:11 pm #432969Hey!
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!
ElliottApril 22, 2015 at 7:54 pm #433073Now 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!!
April 23, 2015 at 5:49 pm #433652Hey!
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.
April 23, 2015 at 6:29 pm #433673Right, 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.
April 24, 2015 at 8:13 pm #434359Hey!
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.
April 24, 2015 at 9:15 pm #434433Yes, 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.
April 24, 2015 at 9:18 pm #434442This reply has been marked as private.April 27, 2015 at 4:27 pm #435372Hi!
please refer to Peter’s post here: https://kriesi.at/support/topic/how-to-get-a-different-layout-for-the-blog-page-without-breaking-breadcrumbs/#post-256745
You could also try one of these plugins:
https://wordpress.org/plugins/dirtysuds-category-thumbnail/
https://wordpress.org/plugins/categories-images/
https://wordpress.org/plugins/category-images-ii/Hope this helps.
Cheers!
AndyApril 27, 2015 at 6:23 pm #435490Oh, 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.
May 4, 2015 at 4:58 pm #439080Hi!
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,
ElliottMay 5, 2015 at 2:48 am #439449I 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
May 6, 2015 at 4:03 am #440081Hey!
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"> →</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"> →</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"> →</span></a></div>'; }
Cheers!
IsmaelMay 6, 2015 at 4:27 am #440086Awesome sauce, Ismael — you’re the man!
-
AuthorPosts
- The topic ‘archives not showing excerpt or featured image’ is closed to new replies.