-
AuthorPosts
-
June 4, 2014 at 7:22 pm #274677
Hi
when I view a category page it is showing the entire posts – is there an Enfold setting to control the layout of the category pages?In your demo you have: http://kriesi.at/themes/enfold/category/science/
Which is a very nice layout – how do I replicate this?Thanks,
SteveJune 5, 2014 at 2:50 am #274893Hi membermaster!
Thank you for visiting the support forum!
Right now, there is no option to change the layout of the archive page. The layout will depend on the setting that you select on Enfold > Blog Layout > Blog Style. Add this on functions.php in order to set the archive page to Single author, big preview blog style:
add_filter('avf_blog_style','avia_change_archive_blog_layout', 10, 2); function avia_change_archive_blog_layout($layout, $context){ if($context == 'archive') $layout = 'single-big'; return $layout; } add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1); function avia_category_content_filter($current_post) { if(!is_single()) { $current_post['content'] = get_the_excerpt(); $current_post['content'] .= '<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>'; } return $current_post; }
Regards,
IsmaelNovember 5, 2014 at 12:03 am #346247This seemed like a perfect fix to do exactly what I was after…until I discovered that for some reason this strips all dropcaps characters from posts in 3.0.2. Now all of my entries where dropcaps have been used, are missing the first letter of the sentence! lol. Any ideas how to fix this and still be able to get an automatic excerpt view on category and archive pages?
Thanks in advance for the help! :)
November 5, 2014 at 7:51 am #346375The issue actually has nothing to do with that snipet. I removed the above code from my functions.php and created a page instead using the blog posts builder item. As soon as excerpt view is chosen it still strips all dropcaps when the page is viewed. Instead of degrading gracefully and just not displaying the character as a dropcap, the entire character is removed. My paragraphs using dropcaps are just missing the first character in the word that starts the first sentence. Is this a bug?
- This reply was modified 10 years ago by cryscryb.
November 5, 2014 at 7:53 am #346381I managed to get the dropcaps displaying using Advanced Excerpt plugin. A bit of googling turned up that WP strips shortcodes from excerpts. It would be great if these could be made to degrade gracefully (still displaying the first character and simply removing the shortcode elements in excerpts) but I’m not sure if this is possible. At any rate I fixed it using the following plugin:
https://wordpress.org/plugins/advanced-excerpt/- This reply was modified 10 years ago by cryscryb. Reason: I consulted google and found the solution. Might help someone else in future though :)
-
AuthorPosts
- The topic ‘Category page shows full posts’ is closed to new replies.