Display the collection description onto the FRONT PAGE

New Member
4 0 0

Hi y'all!

I would like to display the description of the collection that is featured on the front page. So far, I'm not sure how to do this. I tried to read older threads but couldn't understand what to do. Which code should I put and where?

Thanks for your replies!

www.kommatiapatterns.com

0 Likes
Highlighted
Explorer
83 0 23

Hi KP,

If you'd like to put the description under the title of your collection on the home page you can do the following:

1.) Navigate to Themes

2.) Click Actions > Edit Code

3.) Navigate to Sections > featured-products.liquid

4.) Find the code below and paste the snippet below that

Find:

{% if section.settings.title != blank %}
  <h2 class="small--text-center">{{ section.settings.title | escape }}</h2>
{% endif %}

Paste below the code above:

<p>{{ collections[featured].description }}</p>

 

That should bring your description in like the screenshot below:

1 Like
New Member
4 0 0

Hi Nick, you are a legend! It worked, thanks for your help!!

0 Likes