- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
On my website [which you can see here](http://elusivebuck.com “elusivebuck”)
My first post seems to be bigger height wise then the others which makes stacking messed up for the third post. Can someone help me fix this? If I zoom in, it seems to line up properly but when I go back to my normal resolution it gets messed up again.
That’s because there is more content in the first box, making it larger. You’ll need to set up the ‘read more’ to truncate a specific range that guarantees a set height.
Not sure why it’s doing it though. I’m using these functions to create the excerpt
// Changing excerpt length
function new_excerpt_length($length) {
return 42;
}
add_filter(‘excerpt_length’, ‘new_excerpt_length’);
// Changing excerpt more
function new_excerpt_more($more) {
global $post;
return ‘…ID) . ‘”>’ . ‘Read More »’ . ‘‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
You’ll probably need to set a height in the CSS as well, as different characters have different widths and could end up making the post too tall anyways.
alrighty I’ll give that a try. Thanks