Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #703444

    I’m playing around with different layouts for my category pages, but the option to display only excerpts instead of full content is not working on some layouts even though I’m selecting Excerpts and they do have excerpts.

    For example, I like the “Multi Author” with excerpts, as seen in demo site at http://kriesi.at/themes/enfold/blog/blog-multi-author/

    But on my site a bunch of content is being displayed beyond the excerpts. The “Party On Solace” at the top of these page is a good example. It has an excerpt set: “Last night, we rented the ultra-hip Devil’s Canyon Brewery in San Carlos California and invited many of our local customers, partners, investors and friends of the company to join us to mark our transition from plucky startup to established leader in our space.”

    #703451

    I’d also like whatever blog layout I pick in the main settings to apply to tag archives.
    I’ve got it set as Multi-Author but as you can see that’s not what they look like:
    https://solace2.staging.wpengine.com/tag/geospatial

    #704070

    Can I get some help with this? It’s really annoying that some archive page layouts are displaying full post content while otehrs display excerpts which is what I want. I can limit what’s displayed on my archive pages by manually adding <!–more–> tags to my posts but that’s pain in the ass over several hundred posts.

    I found this two-year-old thread that offers a piece of code to add to functions.php, but I did that and nothing changed.

    Can you provide updated instructions?

    #704077

    Or at least tell me how to set the number of characters or words at which the archive pages automatically introduce the “Read the Rest” link, as I can’t find any rhyme or reason to it. Posts display between 125 and 200 words, 1000 and 1200 characters, etc.

    #704703

    Hi,

    Thank you for using Enfold.

    Please use the following code in the functions.php file to set 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');

    If you want to change the layout of the category and tag pages, add the following code.

    // for category pages
    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
        if($context == 'archive') $layout = 'single-small';
        return $layout;
    }
    
    // for tag pages
    add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2); 
    function avia_change_tag_blog_layout($layout, $context){
        if($context == 'tag') $layout = 'single-small';
        return $layout;
    }

    Available layouts are single-small, single-big, blog-grid and multi-big.

    Please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    Best regards,
    Ismael

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