-
AuthorPosts
-
December 5, 2013 at 5:35 am #196506
I’m curious why there’s no “Excerpt With Read More Link” option under General Settings > Blog Style. It seems like the only way to get the “Excerpt With Read More Link” listings on my Blog index is to set Theme Options > And where do you want to display the Blog? to “Select Page”, create the Blog index as a “normal page”, insert a Blog Posts Content Element, and then select “Excerpt With Read More Link”. Is that true or am I missing something?
Thanks!
December 5, 2013 at 11:26 am #196604Hey sky19er!
Yes, that is correct. You can also use the <!–more–> tag or enable the Excerpt option on posts.
Best regards,
IsmaelDecember 5, 2013 at 7:21 pm #196736OK, thanks. So, when I use the method I noted to get my “Excerpt With Read More Link” Blog index, I notice, the single.php page title switches from “Blog” to “Blog – Latest News”, and those titles link to the home page? Seems like the title should stay the same — “Blog” — and link to the Blog index page. Can you tell me how to fix that? Should I start a new thread for this?
Thanks again!
December 5, 2013 at 7:24 pm #196737Here’s a link to my dev site blog index: http://cbdmh.info/news2/ and an example single post http://cbdmh.info/dsm-5-recap-the-eight-dimensions-of-psychosis/
December 6, 2013 at 7:25 am #196883Hi!
Please deselect the page on Enfold > Theme Options > Where do you want to display the blog? option. Create a page then insert the Blog Posts element.
Regards,
IsmaelDecember 6, 2013 at 7:40 am #196894Yeah, that’s how I have it, but that’s what causes the little problem I described above with the title switching to “Blog – Latest News” and linking to the home page instead of the blog index.
][;;;;;;”\]
December 7, 2013 at 9:56 am #197265Hey!
You can replace the blog headline by editing single.php or by using a filter. I recommend to use the filter code below because you can insert it into your child theme functions.php and by going this way your code is upgrade safe and you can upgrade the parent theme without loosing the customized code. Open up the functions.php file and at the very bottom insert
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if($args['title'] == 'Blog - Latest News') { $id = 120; $args['title'] = get_the_title($id); $args['link'] = get_permalink($id), } return $args; }
Instead of 120 insert the id of your blog page. If you don’t know how to find the id please read this article: http://www.ostraining.com/blog/wordpress/how-to-find-the-page-id-in-wordpress/
Best regards,
PeterDecember 8, 2013 at 1:17 am #197496Hey thanks so much for the detail instructions. Do you guys already have it in the feature requests to provide an “Excerpt With Read More Link” option under General Settings > Blog Style? In my experience, that’s the most standard Blog index page style.
- This reply was modified 11 years ago by sky19er.
-
AuthorPosts
- The topic ‘Excerpt With Read More Link Blog Style’ is closed to new replies.