Tagged: masonary
Hi,
I just set my front page as a masonary blog but the feature images set for each blog post are overlapping each other when the page is first loaded, i.e. the excerpt and titles are hidden by the feature images above it. Only after one or two page reloads does this get fixed to display correctly each posts feature image and blog title/excerpt, with gaps
Hope you can help!
Thanks
Josh
Seems to be related to the RH sidebars..
Did away with RH sidebars, still getting the overlap problem
Also, the excerpt sometimes shows 2 lines and most others 1 line, creating a staggered look to the blogs layout. How can i fix this? and can we get more of an excerpt, say a 20-30 words?
tHANKS!
Hi,
Try adding this at the very end of your theme functions.php file:
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery(window).trigger('resize');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue
Thanks Josue, unfortunately hasn’t helped. Any other suggestions?
Also how can i get the excerpt to be one or two lines long, not randomly 1 or two as is now? It misaligns the blog posts..
Josh
Hi Josh!
It’s not random, that’s happening because of some posts have larger excerpts than others, you can equalize them with this code in Quick CSS:
.av-inner-masonry-content.site-background {
min-height: 135px;
}
Best regards,
Josue
thanks! Is there a way to change length of excerpt?
Hey!
You can change the excerpt by editing the Post (Screen Options > Excerpt).
To change the default excerpt length, try:
http://matthewfecher.com/webdesign/wp-quick-tip-how-to-change-the-excerpt-length/
Best regards,
Josue