Tagged: custom excerpt, read more
-
AuthorPosts
-
August 25, 2014 at 3:42 pm #308853
Hi,
I want to be able to show the summary of the snippet on the blog home page. I do NOT want to use the Read More Tag for this. Not only is this a lazy way of doing things you also cannot customise what content you want in your snippet.How can this be achieved with Enfold – with the following:
1. The snippet is drawn from the Excerpt and not the read more tag.
2. It appears on Blog home page.Thanks and appreciate the help
Vince
August 26, 2014 at 9:58 am #309225Hi Vince!
Have you tried setting a manual Excerpt?
Regards,
JosueAugust 26, 2014 at 5:02 pm #309412Hi Josue,
That did not work. The excerpt is not showing on teh blog home page. The whole post is showing instead which is not what I want and my original question is: I need for the except to show onthe home page and blog home page instead of the Read More tag.
Thanks
VinceAugust 26, 2014 at 11:46 pm #309577Hey!
Try adding this at the very end of your theme / child theme functions.php file:
function change_blog_archive_style() { global $avia_config; if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; } } add_action('get_header', 'change_blog_archive_style');
Cheers!
JosueAugust 27, 2014 at 1:45 pm #309802This reply has been marked as private.August 27, 2014 at 6:08 pm #309976Hi,
Can you post the link to your website please? a temporary admin account would be helpful too.
Regards,
JosueAugust 28, 2014 at 5:07 pm #310538This reply has been marked as private.August 30, 2014 at 6:35 pm #311332Is there anyone else on this forum who knows or remembers how to use the excerpt instead of the Read More Tag?
Thanks
VinceAugust 30, 2014 at 7:01 pm #311346Hi Vince!
I was able to set a custom excerpt for the “ZEOS Waxing for Men” post and it is showing as expected in the blog page – http://screencast.com/t/VWp47k9c99a
Regards,
JosueSeptember 1, 2014 at 8:55 pm #311990Hi Jisue,
I’m not getting it – when I clcik on the blog home page (not site home page) it is still showing the entire post and not the excerpt I created in the exceprt field in the control panel.Also, you are using the home page for that word ‘custom excerpt’ and that is not drawn from the post.
Someone else here knows how to do this, they did it for the Abundance theme but I cannot remember who.Just to clarify this si what I am looking to do:
1. When the blog is created – write a custom excerpt.
2. Place custom except into the excerpt field in the control panel.
3. The blog homepage websitename.com/blog will be able to draw that exceprt through with the image.
4. The site homepage websitename.com. will also be able to draw that through if setup.How can this be achieved? Fuethermore why is Kriesl still using the custom excerpt as the defualt way when for the last couple of years this featured has been requested multiple times?
Thanks
Vince
- This reply was modified 10 years, 3 months ago by Vincent. Reason: additional info
September 1, 2014 at 9:13 pm #311992Hey Vince!
Now the homepage and /blog are pulling the same content (“Custom Excerpt.”), i used this code in functions.php:
function change_blog_archive_style() { global $avia_config; if(!is_single()){ $avia_config['blog_content'] = get_the_excerpt(); } } add_action('get_header', 'change_blog_archive_style');
Cheers!
JosueSeptember 1, 2014 at 9:50 pm #311999Hi Josue,
That’s brilliant – all working now. Your help is really appreciated.
Thanks
Vince
- This reply was modified 10 years, 3 months ago by Vincent.
September 1, 2014 at 10:43 pm #312006You are welcome Vince, glad to help :)
Regards,
JosueMay 8, 2015 at 11:46 pm #441812Hello. I just inserted this code and it worked great for making the posts only show the excerpt on the home page (as opposed to the full text). However, when I go to my category pages (mysite.com/categories/category-name) or tag pages (mysite.com/tag/tag-name), it is showing the full posts (not the excerpts like on the home page.
What tweaks would need to be made to that code to make it show the excerpt on all of the areas (Home page, Blog, Categories, and Tags)?
Thanks!
May 9, 2015 at 3:43 am #441841Hey!
What happens if you change the snippet to:
function change_blog_archive_style() { global $avia_config; $avia_config['blog_content'] = get_the_excerpt(); } add_action('get_header', 'change_blog_archive_style');
Regards,
JosueMay 9, 2015 at 2:22 pm #441946Hello. I tried the revised code, but it still shows the full blog posts when viewing the category archive pages and the tag pages. Please advise.
May 10, 2015 at 6:45 pm #442125Hi,
Can you please create me a WordPress administrator account? post it here as a private reply.
Regards,
JosueMay 11, 2015 at 3:24 am #442174This reply has been marked as private.May 12, 2015 at 12:38 am #442752Hey!
Check it now, this is the snippet i ended up using:
function change_blog_archive_style() { global $avia_config; if(!is_single()) $avia_config['blog_content'] = "excerpt_read_more"; } add_action('get_header', 'change_blog_archive_style');
Best regards,
Josue- This reply was modified 9 years, 7 months ago by Josue.
May 12, 2015 at 1:39 am #442762Hi Josue – Thanks for putting in this revised snippet. It looks great now on the tag and category pages. The only problem is that that snippet prevents you from being able to view the actual article! When you click on an article, you just see the excerpt and the read more link. There is no way to read the actual article anymore. Please advise. Thanks!
May 12, 2015 at 2:00 am #442773Fixed, please check it now.
Regards,
JosueMay 12, 2015 at 3:22 am #442787Awesome. Thanks so much! Looks great!
May 12, 2015 at 4:53 am #442793You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.