Centering Posts Causes Misalignment
-
First, absolutely love the plugin. Thanks for the great work over the years.
I used a function that you provided to another user to center related posts. It works great. Except for some reason in mobile (and mobile only), if the post title length is different (ex. one takes up 2 lines and the other 3 lines), it will cause misalignment between the related posts. You can see it on this page, on a mobile device:
https://japaneselevelup.com/giant-reasons-people-quit-learning-japanese/
You might have to hard refresh it to get 2 related posts next to each other with varying length (one taking up 2 lines and another 3).
Is there anything that can be done to properly align them?
Thanks so much for everything!
Adam
—-
The function I’m using:function rpt_content_align_callback( $class ) {
$class = “relpost-align-center”;
return $class;
}
add_filter( ‘rpt_content_align’, ‘rpt_content_align_callback’ );There are two more options you can provide in $class:
“relpost-align-right”
“relpost-align-left”The page I need help with: [log in to see the link]
- The topic ‘Centering Posts Causes Misalignment’ is closed to new replies.