Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1297009

    Hello,
    I have followed this thread and added the suggested code

    add_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 PHP

    Thank you
    Mauro

    #1297910

    Hey 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-1233524

    Best regards,
    Ismael

    #1301055

    Thank you
    Mauro

    #1301263

    Hi,

    You are welcome! Please feel free to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to customize blog category page layout’ is closed to new replies.