We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Center text Multicolumn Sections

Solved

How to center text in multicolumn sections?

myhairvitamins
Tourist
23 0 1

Hello, i need to center this title or text, anyone willing to help?

Multicolumn section.

Thank you 🙂

myhairvitamins_0-1652456293694.png

 

Accepted Solution (1)
VUMODigital
Shopify Partner
32 5 25

This is an accepted solution.

Hi there!

 

Thank you for granting access and I've created a mock-up of the text above one of your multicolumn rows (see below)

 

myhairvitamins.png

 

I've applied this to your theme by adding the following code to the very bottom of your theme's .css file:

 

 

.multicolumn .title{
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}

 

 

If you visit your website and head to the customiser, you can now add any text that you wish and it will appear centered.

 

Once you've added the text, refresh your webpage and you should see it visible on your site.

 

I hope this helps and please shout if any questions.

 

Kindest regards

 

Iain Beaumont

VUMO Digital

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you need further help, please send me an email or visit VUMO to see our full range of services.

View solution in original post

Replies 9 (9)

VUMODigital
Shopify Partner
32 5 25

Hi there,

 

This should be quite a quick fix - can you share your website URL so that I can take a look and see if I can find a solution for you?

 

Kindest regards

 

Iain 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you need further help, please send me an email or visit VUMO to see our full range of services.
myhairvitamins
Tourist
23 0 1

Hey the website is not published, you can send a store invitation request

myhairvitamins.myshopify.com


the theme is named ”Sense Updated Theme Version 3.0.0”

 

 

thank you so much

VUMODigital
Shopify Partner
32 5 25

This is an accepted solution.

Hi there!

 

Thank you for granting access and I've created a mock-up of the text above one of your multicolumn rows (see below)

 

myhairvitamins.png

 

I've applied this to your theme by adding the following code to the very bottom of your theme's .css file:

 

 

.multicolumn .title{
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}

 

 

If you visit your website and head to the customiser, you can now add any text that you wish and it will appear centered.

 

Once you've added the text, refresh your webpage and you should see it visible on your site.

 

I hope this helps and please shout if any questions.

 

Kindest regards

 

Iain Beaumont

VUMO Digital

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you need further help, please send me an email or visit VUMO to see our full range of services.
myhairvitamins
Tourist
23 0 1

Hi thank you, the solution seems to work but you worked on the wrong theme.

The published theme is an old version. 

The theme i want the changes on is called "Sense Updated Theme Version 3.0.0"

 

I would be very thankful if you can add the code to "Sense Updated Theme Version 3.0.0" 

 

Thank you

VUMODigital
Shopify Partner
32 5 25

Hi,

 

Thank you for the clarification and I've added the code to the theme you mention above.

 

I have just checked it via the customiser and all is working.

 

Kindest regards

 

Iain

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you need further help, please send me an email or visit VUMO to see our full range of services.
myhairvitamins
Tourist
23 0 1

Thank you alot for your help

myhairvitamins
Tourist
23 0 1

Hello again, the text is centerized which is good but in Mobile view it gets a little bit out of control

Please see image below. I tried padding, it doesnt help

Mobile view below:

myhairvitamins_0-1652527049130.png

 

 

Desktop view looks pretty OK

myhairvitamins_1-1652527116181.png

 

VUMODigital
Shopify Partner
32 5 25

Hi,

 

Thanks for the update and the note regarding mobile view.  

 

I've added a little extra code to bring the text down for mobile phone screens but you will need to inspect how this renders when using the multicolumn feature elsewhere, as other elements may overlap.

 

Code:

 

 @media screen and (max-width: 749px){
.multicolumn .title {
   top: 20px;
}
  }

 

Kindest

 

Iain

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you need further help, please send me an email or visit VUMO to see our full range of services.
myhairvitamins
Tourist
23 0 1

Thank you, is there any way to make the width more?

984577B2-A93C-4343-B22E-32749B486FE3.jpeg