-
AuthorPosts
-
June 22, 2017 at 5:34 pm #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.netThanks,
Torsten- This topic was modified 7 years, 5 months ago by th-photography.
June 23, 2017 at 3:25 pm #812135Hey th-photography,
Please refer to this thread for a possible solution.
If you need further assistance please let us know.
Best regards,
VictoriaJune 23, 2017 at 5:37 pm #812199Hello,
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
June 25, 2017 at 4:54 pm #812723Hi 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,
VictoriaJune 25, 2017 at 5:31 pm #812740Hello,
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- This reply was modified 7 years, 4 months ago by th-photography.
June 25, 2017 at 7:21 pm #812778Hi Torsten,
Could you enable the Appearance > Editor submenu?
Best regards,
VictoriaJune 25, 2017 at 7:23 pm #812779Hello Victoria,
how can I do this?
Isn’t it deactivated for security purposes in principle?Thanks.
- This reply was modified 7 years, 4 months ago by th-photography.
June 27, 2017 at 12:10 pm #813369Hi 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,
VictoriaJune 27, 2017 at 8:00 pm #813579Yes 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,
TorstenJune 28, 2017 at 5:08 pm #813970Hi 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,
VictoriaJune 28, 2017 at 7:49 pm #814077It 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.
June 29, 2017 at 1:26 pm #814435Hi Torsten,
Try the
'blog-grid'
layout instead of ‘multi-big’.
Best regards,
Victoria- This reply was modified 7 years, 4 months ago by Victoria.
June 29, 2017 at 7:39 pm #814645Hello Victoria,
great, works. How is the code for only 2 articles per row instead of the 3?
Thanks.
June 30, 2017 at 5:48 am #814789Hi,
Please, could you provide to us some screenshot about this articles?
Best regards,
John TorvikJune 30, 2017 at 9:29 pm #815181Look at my main page. I would like to have it like that. 2 Articles per row.
July 4, 2017 at 7:59 pm #816465Hello,
How is the code for displaying only 2 articles per row instead of the 3?
Thanks.
July 5, 2017 at 9:54 pm #816894Hi,
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,
BasilisJuly 5, 2017 at 10:00 pm #816896Hello,
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’?- This reply was modified 7 years, 4 months ago by th-photography.
July 6, 2017 at 6:50 pm #817441Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.