-
AuthorPosts
-
April 27, 2021 at 2:59 pm #1297009
Hello,
I have followed this thread and added the suggested codeadd_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘blog-grid’;
return $layout;
}It is better, but
1) I would like to see it with an image on the left and an excerpt on the right (please see example in private content). Is it possible?
2) I would also like to have the single post page with the sidebar, but the blog category page without. Is it possible?
3) How to remove the “Archive for category: ” text from the H1?
4) How to trim the excerpt to a certain number of characters?
5) How to change the default image size? And How to ensure that all the images are of the same height?
Forgive me for the many questions
Enfold is wonderful, but in the blog area you should add more from your style and class, with more options for those who don’t know how to add PHPThank you
Mauro- This topic was modified 3 years, 8 months ago by profumopuntoit.
May 3, 2021 at 7:04 am #1297910Hey profumopuntoit,
Thank you for the inquiry.
In the future, please try to open a single ticket for each inquiry and avoid stacking multiple questions in one go. This will allow the forum moderators to focus on a single issue and in return, you will receive a more immediate response.
Now to answer your inquiries..
1.) This is not possible by default without major modification in the archive template.
2.) You can configure the page layout of the single post and archive pages in the Enfold > Sidebar Options panel.
3.) Add this filter in the functions.php file to remove the prefix from the category title.
add_filter('avf_which_archive_output','avia_new_archive_output'); function avia_new_archive_output(){ if (is_archive()) { $output = __('','avia_framework')." ".single_tag_title('',false); } return $output; }
4.) This plugin should help you control the excerpt.
// https://wordpress.org/plugins/advanced-excerpt/
Or try to use one of the snippets that we provided in the following thread to limit the characters in the excerpt.
// https://kriesi.at/support/topic/excerpt-length-for-post-slider-blog-posts-and-magazine/#post-1290417
// https://kriesi.at/support/topic/shorten-blog-post-excerpts-2/#post-1233524Best regards,
IsmaelMay 18, 2021 at 6:17 pm #1301055Thank you
Mauro- This reply was modified 3 years, 7 months ago by profumopuntoit.
May 20, 2021 at 3:31 am #1301263 -
AuthorPosts
- The topic ‘How to customize blog category page layout’ is closed to new replies.