Hi guys,
Just wondering the easiest way to go about changing the global archive template to display 3 posts and no sidebar would be?
Thanks,
Hi guys,
Just wondering the easiest way to go about changing the global archive template to display 3 posts and no sidebar would be?
Thanks,
Hey,
it would require some mods to change the structure to a three column layout but I can show you how to limit the number of items. In includes/loop-archive.php replace:
</div><!--end post-entry-->
with:
</div><!--end post-entry-->
if($smallcounter == 2){ break; }Alright, so I have removed they sidebar by changing the div class archive template to a full page width template in the archives.php file
<div class='template-fullwidth content'>
and then removing
<?php
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = "blog";
//get the sidebar
get_sidebar();
?>
Now I am just trying to get the 3 column break instead of two. I'm feeling like this needs to me modified. in the loop-archive.php file.
$alternate = $smallcounter % 2 == 0 ? 'even' : 'odd';
thoughts?
Try to replace:
$alternate = $smallcounter % 2 == 0 ? 'even' : 'odd';
with:
$alternate = $smallcounter % 3 == 0 ? 'even' : 'odd';>.< Yea I tried that.
:/
thanks.
Try to add following code to css/custom.css and also make the modification above.
.archive .half_post_odd {
clear: none;
}
In archive.php replace:
container
with
container template-fullwidth
and
template-blog content
with:
template-blog content template-fullwidthSo that worked, it now spans three archive previews, however, the spacing in between the posts gets all messed up. Some get clumped together, some end up on a row of their own. It's not even spacing like in the two archive preview per a row. :/
Thanks :)
You must log in to post.