Blogs: Move title below image

In this tutorial, we will move the title from inside the image to below the image on a blog index page with grid view. Since the text will be removed, the dark image overlay will not be required. We will remove overlay to brighten the blog image as well. 



How to:

Always make a duplicate of your theme before adding any code. This will save you if anything goes wrong or if you decide not to use the added code in the future. We can not support or be responsible of any code changes that you make to your theme. For that reason, save yourself and make a duplicate first.

Make a duplicate before any code changes:

Next, open the Code Editor:

From your list of themes, find the Actions link for the theme you'd like to edit. Then select Edit code. Example draft theme:

Example if you're working from your main live/published theme:

Quick link if the theme is live/published:
Open Code Editor


Replace the index page snippet code

Modify the article-grid-item.liquid which is in your Snippets folder. If Pipeline is not published, you can find the file by browsing in the Code Editor to the Snippets folder.

If Pipeline is currently published, you can use this quick link to open the file:


Replace all the code with code from this file:


Pipeline 5.0 and higher:
Click to view mobile code


Earlier versions of Pipeline:
Click to view mobile code

Save the file.

That will place the title below the image.


Add style code

Style code to use (instructions below):

.blog__article__overlay:after {background: none !important;}
.template-blog .blog__article__title { margin-bottom: 2rem; margin-top: -1.5rem; }

Optional: You can also add an additional line of code to remove the zoom effect when you hover over the image. To remove the zoom effect, add this additional line to the same file at the bottom:

.blog__link:hover .blog__article__overlay, .blog__link:hover .blog__article__text, .blog__link:hover .blog__article__title {transform: none !important;}


To modify the title font, you can use css and target that heading with the following:

h3.blog__article__title { text-transform: uppercase; }

In that example, I'm forcing the text to be all uppercase.

Where do I add the code?

Use this link to learn where exactly to add this code snippet:

Where to add your CSS style code

Undo Customization

If you decide to return to the original format of the blog index page, you can use the "Older versions" link in  article-grid-item.liquid to rollback to the original version:

You'll can also remove the lines added to the bottom of your style.scss.liquid file. There is no rollback feature for that file.