Text Placement: Rearranging Headings and Subheadings in Shopify

Hey there! I’m wondering if anyone might know how to adjust the text placement in Shopify. Right now, our subheading appears above the heading in a section of our website. If anyone has any ideas on how to fix this, we’d really appreciate the help!

1 Like

Hello @munfas_uk

Can you please share store URL?

@niraj_patel Thank you for your response. Our URL is: munnafashion.com

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 on theme.liquid

.section__header { display: flex !important; flex-direction: column-reverse !important; } .section__header h3.heading.h2 { margin-bottom: 20px !important; }

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

Hi @munfas_uk

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

div#shopify-section-template--22342257901881__blog_posts_kLiC9n header.section__header.text-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
}

And Save.

Result:

Note: the changes will only be in this section.

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