Tagged: excerpt
-
AuthorPosts
-
August 17, 2017 at 8:29 am #840294
Hello,
I am seeing some posts in category view in full and some with excerpts. I want all with excerpt only. Can you please help?
Please scroll on this and you will see http://xandrianoir.com/category/generally-talking/
It’s happening on all blog categories.Thanks
- This topic was modified 7 years, 3 months ago by xa1970.
August 19, 2017 at 11:05 pm #841475Hey xandria,
Please try this solution: https://kriesi.at/support/topic/blog-posts-excerpts-enfold/#post-125278Best regards,
MikeAugust 25, 2017 at 5:08 pm #844063Hello Mike,
I am sorry I am confused. There’s no line
$blog_content = !empty($avia_config[‘blog_content’]) ? $avia_config[‘blog_content’] : “content”;but there is this in includes/loop-index.php:
$current_post[‘post_format’] = ‘standard’;
$blog_content = “excerpt_read_more”;I don’t want to mess anything up.
Regards,
XNAugust 26, 2017 at 2:40 pm #844347Hi,
To have excerpts show on your category pages you have two options when using the default editor, one is to add the “more” quicktag in your post where you would like the excerpt to end.
The other option is to edit /wp-content/themes/enfold/includes/loop-index.php on line 33, you will find$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";
replace it with
$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "excerpt_read_more"; if(is_single()) $blog_content = "content";
To not lose this change with the next update you should use a child theme and add the modified file to your child theme folder. Here’s some more info on this: Using a Child Theme
Overwrite Parent files with Child Theme
While on the subject of excerpts, note that for blog page excerpts you can also control them by activating the “excerpt” box by going to your “screen options” at the top of your post page and checking the box, which will give you a extra text box below your post.
Best regards,
MikeOctober 2, 2017 at 8:13 pm #859356Will this solution work for tag pages as well? For example:
October 4, 2017 at 2:23 pm #860135Hi reggiescott,
I am seeing the excerpts there. Did you get it working?
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.