1. Go to Sections -> main-collection-banner.liquid
2. Add this code below collection description code:
<ul class="collections-list-scroll">
{% for collection in collections %}
<li>
<a href="{{ collection.url }}">{{ collection.title }}</a>
</li>
{% endfor %}
</ul>
3. Add below CSS code in your css file like base.css at the bottom:
.collections-list-scroll {
display: flex;
justify-content: center;
/* margin: 0 auto; */
min-height: 40px;
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 6px;
padding-left: 20px;
}
.collections-list-scroll:after {
background: linear-gradient(to right, rgb(var(--1cripqf), 0), rgb(var(--1cripqf), 100%));
content: "";
height: 30px;
padding-top: 8px;
position: absolute;
right: 0;
width: 40px;
}
.collections-list-scroll li {
margin: 8px 4px 0;
scroll-snap-align: start;
list-style: none;
padding: 0;
}
.collections-list-scroll li a {
background-color: #334fb4;
border: 0;
border-radius: 15px;
box-sizing: border-box;
color: #fff;
display: inline-block;
/* font-family: futura-pt, sans-serif; */
font-size: 12px;
font-weight: 900;
height: 30px;
letter-spacing: 1.2px;
line-height: 12px;
padding: 9px 15px;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
}
.collections-list-scroll::-webkit-scrollbar {
width: 50px;
height: 8px;
}
.collection-hero__inner {
flex-direction: column !important;
text-align: center;
}
.collection-hero__description {
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
}
@media only screen and (max-width: 800px) {
.collections-list-scroll {
justify-content: unset;
padding-left: 0;
}
}
@media (hover: hover) {
.collections-list-scroll::-webkit-scrollbar-thumb {
background-color: #9a9a9a;
border-radius: 8px;
}
}