How do I move writing at the top of a collection so it is in the middle of the collection images?

Solved

How do I move writing at the top of a collection so it is in the middle of the collection images?

jking403
Tourist
8 0 2

Hello,

 

I have a heading at the top of my collection but I want it to display across the two images like I have shown in the screenshot.

 

Any help is much appreciated.

 

Many thanks,

Josh

 

jking403_0-1736758754158.png

 

Accepted Solution (1)

Tech_Coding
Shopify Partner
514 132 131

This is an accepted solution.

Hello @jking403 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
#shopify-section-template--20772353736981__collection_list_tFLGxw .section-header {
   position: absolute;
   top: 37%;
   z-index: 99;
}
#shopify-section-template--20772353736981__collection_list_tFLGxw .section-spacing:not(.section-spacing--padded){
     margin-block-start: 0px !important;
}

</style>
RESULT:

Tech_Coding_0-1736759786762.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

View solution in original post

Replies 5 (5)

jking403
Tourist
8 0 2

URL - mutu-store

Tech_Coding
Shopify Partner
514 132 131

This is an accepted solution.

Hello @jking403 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
#shopify-section-template--20772353736981__collection_list_tFLGxw .section-header {
   position: absolute;
   top: 37%;
   z-index: 99;
}
#shopify-section-template--20772353736981__collection_list_tFLGxw .section-spacing:not(.section-spacing--padded){
     margin-block-start: 0px !important;
}

</style>
RESULT:

Tech_Coding_0-1736759786762.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
jking403
Tourist
8 0 2

Hi Tech_Coding, this works! Thank you!

 

Dont suppose you know how I can change the text colour to white?

 

Many thanks,

Josh

Bundler-Manuel
Trailblazer
651 30 78

Hi there @jking403  You should check out the marked solution reply here https://community.shopify.com/c/shopify-design/i-want-to-center-the-collection-page-headings-in-dawn... 

I think this solution should work fine for your case as well so let me know if it does. 

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.

EstherBui
Excursionist
275 39 41

Hi @jking403 

 

Thanks for your query :

 

You can follow this instruction:

 

1. Go to Shopify > Theme > Customize

2. Hide the collection title here: https://prnt.sc/ipE1yMMpEXoW

3. Then Add block custom liquid: https://prnt.sc/H_GUm-ZQAbLs

4. Add this code below to show the collection title: https://prnt.sc/1Wx9ImXatN6q

 

 

<h1>{{collection.title}}</h1>

 

 

Here is the result: 

 

EstherBui_0-1736760526160.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!