Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #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

    #309225

    Hi Vince!

    Have you tried setting a manual Excerpt?

    Regards,
    Josue

    #309412

    Hi 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
    Vince

    #309577

    Hey!

    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!
    Josue

    #309802
    This reply has been marked as private.
    #309976

    Hi,

    Can you post the link to your website please? a temporary admin account would be helpful too.

    Regards,
    Josue

    #310538
    This reply has been marked as private.
    #311332

    Is there anyone else on this forum who knows or remembers how to use the excerpt instead of the Read More Tag?

    Thanks
    Vince

    #311346

    Hi 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,
    Josue

    #311990

    Hi 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, 2 months ago by Vincent. Reason: additional info
    #311992

    Hey 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!
    Josue

    #311999

    Hi Josue,

    That’s brilliant – all working now. Your help is really appreciated.

    Thanks

    Vince

    • This reply was modified 10 years, 2 months ago by Vincent.
    #312006

    You are welcome Vince, glad to help :)

    Regards,
    Josue

    #441812

    Hello. 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!

    #441841

    Hey!

    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,
    Josue

    #441946

    Hello. 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.

    #442125

    Hi,

    Can you please create me a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #442174
    This reply has been marked as private.
    #442752

    Hey!

    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, 6 months ago by Josue.
    #442762

    Hi 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!

    #442773

    Fixed, please check it now.

    Regards,
    Josue

    #442787

    Awesome. Thanks so much! Looks great!

    #442793

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 23 posts - 1 through 23 (of 23 total)
  • You must be logged in to reply to this topic.