Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #811709

    Hello,

    I have chosen the Blog Layout with a preview image for each post. That works well on the blog main page. But when i click a category, month or so as filter for showing the regarding articles to that, there is no preview image shown.
    How can i change that, i would like to have a preview image also in that view.
    Website: http://www.th-photography.net

    Thanks,
    Torsten

    #812135

    Hey th-photography,

    Please refer to this thread for a possible solution.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #812199

    Hello,

    i added the code of that thread to the functions.php of the child-theme:

    add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    if($context == ‘archive’) $layout = multi-big’;
    if($context == ‘tag’) $layout = ‘multi-big’;
    return $layout;
    }

    But that does not work. I got only the famous complete white page after that ;-).

    Any idea?

    Thanks

    #812723

    Hi th-photography,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look? Do you have the server log where we can see the error?

    Best regards,
    Victoria

    #812740

    Hello,

    Yes sure.
    I get no error with that code, only the known white WordPress page if something is wrong.
    One more thing in this context: In addition to the featured image in category, month,….-filtered view, I would also like to have an arrangement as raster view as it is the case on the main blog page (Home) of mit site.

    Thanks a lot for your help,
    Torsten

    #812778

    Hi Torsten,

    Could you enable the Appearance > Editor submenu?

    Best regards,
    Victoria

    #812779

    Hello Victoria,

    how can I do this?
    Isn’t it deactivated for security purposes in principle?

    Thanks.

    #813369

    Hi th-photography,

    Normally an admin account has access to it and you have to disable it if you don’t want it to show. SO somebody on your side probably disabled that menu item. How did you add the code to the child theme? Via FTP?

    Best regards,
    Victoria

    #813579

    Yes i added it via FTP to the functions.php but that had crashed the site (white page).
    I am not a friend of the WP editor due to security purposes.
    However, I have activated the editor now for you.

    Thanks,
    Torsten

    #813970

    Hi Torsten,

    The single quotes were wrong in the code above and one was missing. Try the code below:

    
    add_filter('avf_blog_style', 'avia_change_category_blog_layout', 10, 2);
    function avia_change_category_blog_layout($layout, $context){
    	if($context == 'archive') $layout = 'multi-big';
    	if($context == 'tag') $layout = 'multi-big';
    	return $layout;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #814077

    It works, great. Thank you.

    But the featured images of the shown articles have a link, and when clicking it, you get back to the main page.
    How can i change that? So, that you get into the article by clicking the link – or – that the picture has no link?

    One other question: Is it possible that the articles are arranged in raster layout like on my main page?

    Thanks a lot.

    #814435

    Hi Torsten,

    Try the

    'blog-grid'

    layout instead of ‘multi-big’.

    Best regards,
    Victoria

    • This reply was modified 7 years, 5 months ago by Victoria.
    #814645

    Hello Victoria,

    great, works. How is the code for only 2 articles per row instead of the 3?

    Thanks.

    #814789

    Hi,

    Please, could you provide to us some screenshot about this articles?

    Best regards,
    John Torvik

    #815181

    Look at my main page. I would like to have it like that. 2 Articles per row.

    #816465

    Hello,

    How is the code for displaying only 2 articles per row instead of the 3?

    Thanks.

    #816894

    Hi,

    That does require some modifications to the grid.
    You need to do it with some custom CSS. If you do not have the know how, please consider to hire a freelancer to help you out with the modifications.

    Best regards,
    Basilis

    #816896

    Hello,

    ok.
    But it is easily possible in the blog view of the theme as you can see on the main page of my blog. So there is no shortcode for that as ‘blog-grid’ / ‘multi-big’?

    #817441

    Hi Torsten,

    You could copy the file archive.php to your child theme, edit it there, changing 3 to 2, but then you will have to make changes in it manually, when Enfold updates.

    If you need further assistance please let us know.
    Best regards,
    Victoria

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