Display Estimated Delivery Date in 2 lines shopify (Dawn Theme)

Topic summary

A Shopify store owner using the Dawn theme wants to display an estimated delivery date message in 2 lines instead of 4. They added custom code showing “It will be delivered between [date] to [date]” but the text breaks across multiple lines.

Desired format:

  • Line 1: “It will be delivered between”
  • Line 2: “11th January to 13th January” (in bold)

Solutions provided:

Multiple community members offered CSS fixes to resolve the formatting issue:

  • LizHoang suggested adding CSS to Theme settings > Custom CSS targeting .accordion__content elements
  • DaisyVo provided more specific CSS code with !important flags to override existing styles
  • Made4uo-Ribe offered the most targeted solution using flexbox properties and the specific element ID, which successfully resolved the issue

The working solution uses display: flex and flex-direction: column to control text layout. All solutions involve adding CSS to the theme’s custom CSS section or base.css file.

Status: Resolved with CSS code provided by Made4uo-Ribe. Another user expressed interest in implementing the same feature.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hello

I have added below code to show estimated delivery date on my product page. But it is divided in 4 lines. Whereas i want to show it in 2 lines.

Code which i added:

It will be delivered between to

{{ '//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js' | script_tag }}

This is how it is displaying:

But i want to display like this:

It will be delivered between

11th January to 13th January

Any suggestions Please…

1 Like

Hi @Jayesh-Agarwal

Could you please share the store link with us for further checking?

Hey @Jayesh-Agarwal ,

This should work:


It will be delivered between  **to** 

  1. Removed the line break between the dates by putting them on the same line
  2. Kept the “to” on the same line instead of having it on a separate line

The dates will still be calculated and displayed the same way, just in a more compact format. You’ll still need the datejs library reference as you had before:

{{ '//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js' | script_tag }}

Cheers!
Shubham | Untechnickle

1 Like

Hi @Jayesh-Agarwal

Your code is incorrect, the

should be at the end instead

Could you please re-check it from your end?

1 Like

Hello. Thanks for your suggestion. I made the change but still its appearing same.

Hello. Thanks for your suggestion. I made the change but still its appearing same.

@Jayesh-Agarwal

Could you please share the link to that page as well? We can’t find this setting on your front store.

Hi @Jayesh-Agarwal

You follow this instruction:

  1. Go to Shopify > Theme > Customize

  2. Copy and paste this code on Theme settings > Custom CSS section

.accordion__content center {
    text-align: left;
}

.accordion__content strong {
    display: flex;
}

here is the result:

I hope it helps.

Liz

1 Like

Hi @Jayesh-Agarwal

I hope you are well. You can follow our instructions below:

1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code below and paste it there

Here is the code for Step 3:

div.accordion__content center strong {
    display: flex !important;
}
div.accordion__content center {
    text-align: left !important;
}
div.accordion__content center strong > span {
    padding-left: 0 !important;
}

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.

Hello The result is still same.

Store url - www.jagstore.in

Hi @Jayesh-Agarwal

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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#ProductAccordion-collapsible-row-1-template--18090623664286__main center {
    display: flex !important;
    flex-direction: column;
    text-align: left;
}

div#ProductAccordion-collapsible-row-1-template--18090623664286__main center strong {
    display: flex !important;
    justify-content: left;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

Hello! I would like to do the same on my site. May I ask where in the product page you placed this code?