How to align price with product title mobile version

Topic summary

A user seeks to left-align product titles on mobile devices, as they currently appear centered while desktop displays them correctly on the left. The price alignment also needs adjustment.

Attempted Solutions:

  • Multiple CSS code snippets targeting .card-information .price and .card__heading elements were provided by different respondents
  • Suggestions involved editing base.css, theme.css, or similar files in the Shopify theme code editor
  • Code modifications included text-align: left !important and width: fit-content properties with media queries for mobile breakpoints

Current Status:

  • Initial solutions from PageFly-Amelia and BSSCommerce-B2B did not resolve the issue
  • User reported that multiple CSS approaches failed to work
  • Latest attempts involve more specific CSS selectors and !important declarations to override existing styles
  • Discussion remains ongoing with troubleshooting in progress, as conflicting CSS rules appear to be preventing the alignment changes from taking effect
Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hello,

Is there a way for me to align the title of the product with the price on the lefthand side? It is fine on desktop but on mobile the title is centered. I would like it to be on the left.

Here is how it looks on desktop:

URL:https://www.yivan.us/

Pass: YIVAN24

Thanks in advance

1 Like

Hi @YIVAN

This is Amelia at PageFly - Shopify Advanced Page Builder app.

You can try the following steps I have provided to help you solve the problem you are facing:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css or theme.css

Step 3: Add code

@media (max-width: 767px) {
.card-information .price {
   text-align: center;
}
}

Hoping my solution helps you solve your problem.

Best regards,

Amelia | PageFly

Hello, the code didn’t work for me. I also want the title on the left not the price in the center.

Hi @YIVAN ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

@media (max-width: 768px){
    .card-information .price {
        text-align: center !important;
    }
}

Here is result:

Or title on the left

.card__information .full-unstyled-link {
    text-align: left !important;
}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you

1 Like

Im not sure why the code didn’t work for me.

It doesn’t work because it is overridden by a piece of code. Try again with the code below.

.collection .card__content .card__heading.h5 a {
    text-align: left !important;
}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you

1 Like

This one also did not work for me.

Hi @YIVAN

  • Go to Online Store → Theme → Edit code.
  • Find the file assets/base.css and paste the code below at the bottom of the file.
.card__information .full-unstyled-link {
text-align: inherit!important;
}

Sorry for the inconvenience. Please try one last time.

.card__information .full-unstyled-link {
    width: fit-content !important;
}