Hi there,
We used this code that we found on the forum to modify the archive.php layout:
add_filter(‘avf_blog_style’,’avia_change_archive_blog_layout’, 10, 2);
function avia_change_archive_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘blog-grid’;
return $layout;
}
Worked really well but it’s given us a 3 column layout in 768 and above view and we wanted 2 columns, a 2 column layout in 480 and we wanted 1 column in 480 and below. Please advise.
Many thanks
Sill loving Enfold – 6 months in and using it on all 3 of our sites!
Hey rpl_admin!
Please add following code to Quick CSS
@media only screen and (min-width: 769px) {
.archive .av_one_third {
width: 48%!important;
margin-left: 2%;
}}
@media only screen and (max-width: 480px) {
.archive .slide-entry {
width: 100%!important;
margin-left: 0!important;
}}
Regards,
Yigit
Hey Yigit,
Thanks for that. Sorry to reply late – didn’t get any email.
Robert