Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: How to center and reduce size on headings on Pages added to menu in footer

Solved

How to center and reduce size on headings on Pages added to menu in footer

Katt11
Tourist
9 0 1

Hello community

I added "About us" and "FAQ" in the Menu in the footer on Dawn Theme (latest version 15..). In opposite to the policy pages, these are added Pages to the Item Menu in the footer section. The two added pages has a larger font and are left located on the page. I want to reduce the font of the heading and I want the heading centered on the page, so they match the policy pages. Is this possible, anyone who can help me? Adjusting a code? Thank you

 

 

Accepted Solutions (2)
Tech_Coding
Shopify Partner
417 110 99

This is an accepted solution.

 

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>
  h1.main-page-title.page-title.h0.scroll-trigger.animate--fade-in{
     font-size: calc(var(--font-heading-scale) * 4rem) !important;
     text-align: center !important;
  }
</style>

Tech_Coding_0-1726825653887.png

Tech_Coding_1-1726825725085.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

Made4uo-Ribe
Shopify Partner
9043 2160 2665

This is an accepted solution.

Hi @Katt11 
Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

h1.main-page-title.page-title {
    text-align: center;
}

 

And Save. 

Result:

Made4uoRibe_0-1726833637249.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 6 (6)

Tech_Coding
Shopify Partner
417 110 99

Hello @Katt11 

would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

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.
Katt11
Tourist
9 0 1

https://inneogute.no/

 

PW: Inneogute

 

Thank you, I appreciate your help

Tech_Coding
Shopify Partner
417 110 99

This is an accepted solution.

 

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>
  h1.main-page-title.page-title.h0.scroll-trigger.animate--fade-in{
     font-size: calc(var(--font-heading-scale) * 4rem) !important;
     text-align: center !important;
  }
</style>

Tech_Coding_0-1726825653887.png

Tech_Coding_1-1726825725085.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.
Katt11
Tourist
9 0 1

Thank you, it worked:)

Katt11
Tourist
9 0 1

Thank you so much, this works for centering, I see that the font size 40 is a little bigger than the font size of the policy pages. Where in the codes can I see what font size that is on the original policy pages? Can I just change the 40px in the code you gave me? 

 

Made4uo-Ribe
Shopify Partner
9043 2160 2665

This is an accepted solution.

Hi @Katt11 
Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

h1.main-page-title.page-title {
    text-align: center;
}

 

And Save. 

Result:

Made4uoRibe_0-1726833637249.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.