Tagged: , ,

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #316912

    Hi
    is it possible to get longer preview text passages ?
    In Grid Layout f.e. it´s not so much information for the users.

    Thanks, Oliver

    #316966

    Hey Oliver!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
       $length = 100;
       return $length;
    }

    Cheers!
    Josue

    #318640

    Hi
    there is a syntax error then (Dreamweaver error message – and site is not loading after then)

    #318643

    Hi,

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

    Regards,
    Josue

    #318655
    This reply has been marked as private.
    #318741

    Hey!

    Thank you for the update.

    The snippet is working for the Grid Layout Blog and the Single Author, Big Preview Pic does work. You need to set the “Blog Content Length” to Excerpt. I created a test page: http://www.tennisgate.com/de/test-page/

    Cheers!
    Ismael

    #318825
    This reply has been marked as private.
    #318839

    Struggling with the same problem, so kind of subscribing at this topic ;-)

    Just found this plugin, maybe it solves @heufti65’s issue: http://wordpress.org/plugins/advanced-excerpt

    What I want is the excerpt to be cut off where I’ve placed the <!--more--> code. Not at a certain number of characters/words/etc.

    #318868

    Hi!

    Thanx, have the same problem, in Blog and category-overview the text as teaser should be till the <!–more–> Tag.

    I solved this in earlyer with some code, but now that wont work any more:

    What can I do?

    Thanx!

    Stefan

    #319002

    Hey!

    Thank you for using Enfold.

    Please add this on functions.php to show the excerpt on archive pages:

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

    #319123
    This reply has been marked as private.
    #322259

    Hey!

    Please try this code instead – insert it at the bottom of your child theme functions.php or enfold/functions.php:

    
    add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1);
    function avia_category_content_filter($current_post)
    {
    if(!is_single())
    {
    	global $more;
    	$more = 0;
    	$current_post['content'] =  get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span>');
    }
    return $current_post;
    }
    

    Regards,
    Peter

    #322304

    Works like a charm for me!!!

    Thnx @Dude!!!
    Marc

    #322306

    And, the great thing is: this way all the HTML is shown in the excerpt of the blog page too! Things like a css class for the excerpt font, hyperlinks, etcetera. How cool is that? Neat stuff!

    #322372

    Hey!

    Great, glad the code worked for you :)

    Best regards,
    Peter

    #322459
    This reply has been marked as private.
    #322706

    ok, number one above worked for me as well, thanx!!!

    what is the difference between the two codes?

    cause the answers are private.

    thanx so much!

    stefan

    #323123

    Hey!

    It uses the get_the_content() function and $more variable. This function can return a different text/output.

    Cheers!
    Peter

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Length of description in preview’ is closed to new replies.