-
AuthorPosts
-
October 24, 2016 at 9:35 pm #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.”
- Grid layout, the excerpt is used: https://solace2.staging.wpengine.com/blog/company-news-events
- Single author, excerpt is not used: https://solace2.staging.wpengine.com/blog/company-news-events-3
- Multi-author, excerpt is not used: https://solace2.staging.wpengine.com/blog/company-news-events-multi-author
October 24, 2016 at 10:04 pm #703451I’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/geospatialOctober 26, 2016 at 1:11 am #704070Can 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?
October 26, 2016 at 1:28 am #704077Or 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.
October 27, 2016 at 8:10 am #704703Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.