Wanna display Blogger Post In grid view with Thumbnails.
If yes then you are at perfect place. Today we will discuss on it.
In most blogs there a homepage full of blog posts with list style. Visitors have to scroll to go to down. So, if you want to give your visitors a good experience on your blog you should use blogs posts with Grid view.
Grid View shows your Blogger posts in a grid with thumbnails on your homepage and archive pages, using only CSS. No JavaScript and no jQuery are needed at all. This is best for blogs with videos and wallpapers. Before proceeding to the steps for adding grid view, take a look at the demo.
Live Demo
I hope you have satisfied with the demo. And if you want to display Blogger posts in grid view with Thumbnails in your blog then follow the next steps.
Warning: back up your theme first. Go to Theme, click the down arrow next to the Customize button, click Backup, then click Download and save the file on your computer. If anything goes wrong while you edit the code, you can restore this file and your blog will be back to normal.
Step 1: Sign in to your Blogger dashboard and open your blog.
Step 2: Go to Theme in the left menu and click Customize.
Step 3: In the theme designer, open the Advanced section and click Add CSS.
Step 4: Copy the CSS code given below and paste it into the Add CSS box.
Step 5: Click Save at the top right, then open your blog homepage. Your posts should now show in a grid with thumbnails.
I am using the Add CSS option because it is the simplest way on current Blogger. It does not change your theme's code, and it loads after your theme's styles, so the grid wins if your theme sets the same thing.
If the grid does not show, open the Add CSS box again and check that the code is still there.
Last Words
Now your posts will start displaying in grid view with Thumbnails. I hope you liked this post. Comment down your problems and share this post with your friend. For more stay tuned with us...
If yes then you are at perfect place. Today we will discuss on it.
In most blogs there a homepage full of blog posts with list style. Visitors have to scroll to go to down. So, if you want to give your visitors a good experience on your blog you should use blogs posts with Grid view.
Grid View shows your Blogger posts in a grid with thumbnails on your homepage and archive pages, using only CSS. No JavaScript and no jQuery are needed at all. This is best for blogs with videos and wallpapers. Before proceeding to the steps for adding grid view, take a look at the demo.
Live Demo
I hope you have satisfied with the demo. And if you want to display Blogger posts in grid view with Thumbnails in your blog then follow the next steps.
Display Blogger Posts With Grid View With Thumbnails
Warning: back up your theme first. Go to Theme, click the down arrow next to the Customize button, click Backup, then click Download and save the file on your computer. If anything goes wrong while you edit the code, you can restore this file and your blog will be back to normal.
Step 1: Sign in to your Blogger dashboard and open your blog.
Step 2: Go to Theme in the left menu and click Customize.
Step 3: In the theme designer, open the Advanced section and click Add CSS.
Step 4: Copy the CSS code given below and paste it into the Add CSS box.
Step 5: Click Save at the top right, then open your blog homepage. Your posts should now show in a grid with thumbnails.
I am using the Add CSS option because it is the simplest way on current Blogger. It does not change your theme's code, and it loads after your theme's styles, so the grid wins if your theme sets the same thing.
If the grid does not show, open the Add CSS box again and check that the code is still there.
/* Display Blogger posts in a grid view with thumbnails - CSS only, no JavaScript */Customization:-
html.index .blog-posts, html.archive .blog-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; clear: both; }
html.index .blog-posts .date-outer, html.index .blog-posts .date-posts, html.archive .blog-posts .date-outer, html.archive .blog-posts .date-posts { display: contents; }
html.index .blog-posts .date-header, html.archive .blog-posts .date-header { display: none; }
html.index .blog-posts .post-outer, html.archive .blog-posts .post-outer { display: flex; }
html.index .blog-posts .post, html.archive .blog-posts .post { display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; }
html.index .blog-posts .post .image_thumb, html.archive .blog-posts .post .image_thumb { float: none; width: 100%; margin: 0; }
html.index .blog-posts .post .image_thumb img, html.archive .blog-posts .post .image_thumb img { width: 100%; height: 170px; object-fit: cover; display: block; float: none; }
html.index .blog-posts .post .wrap_post, html.archive .blog-posts .post .wrap_post { float: none; width: auto; margin: 0; flex: 1; }
html.index .blog-posts .post .post-title, html.archive .blog-posts .post .post-title { font-size: 20px!important; line-height: 1.3; }
@media (max-width: 900px) { html.index .blog-posts, html.archive .blog-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { html.index .blog-posts, html.archive .blog-posts { grid-template-columns: 1fr; } }
- To change the number of columns, replace 3 in repeat(3, 1fr) with your own number.
- To change the height of the thumbnail image, replace 170 with your own size.
Last Words
Now your posts will start displaying in grid view with Thumbnails. I hope you liked this post. Comment down your problems and share this post with your friend. For more stay tuned with us...