Related Posts shows weird column layout
-
I’ve enabled a default layout of 6 Related Posts on my site.
On desktop, the site looks fine and displays the following layout:
x x x
x x xHowever on mobile, the layout is:
x x
x
x x
x
x xHow can I make 2 columns of 3 rows on desktop?
The code I’m using is:
// show 6 related posts function jetpackme_more_related_posts( $options ) { $options['size'] = 6; return $options; } add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_more_related_posts' ); // Change “Related” headline at the top of the Related Posts section //Jetpack Related Posts - changing related text and class function jetpackme_related_posts_headline( $headline ) { $headline = sprintf( '<h5 class="jp-widget-title">%s</h5>', esc_html( 'Related Content' ) ); return $headline; } add_filter( 'jetpack_relatedposts_filter_headline', 'jetpackme_related_posts_headline' ); add_filter( 'jetpack_relatedposts_filter_post_context', '__return_empty_string' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Related Posts shows weird column layout’ is closed to new replies.