How can I add a title to my featured product on the dawn theme?

Hi, I want to add a title to my featured product. Is there any way to do that? I want it to look like the text I added underlined in red. I’m currently using the dawn theme. I appreciate the help!

2 Likes

Hello @Dat999

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottom of the file:
.title-wrapper--no-top-margin>.title {
    text-align: center;
    margin: 0 auto;
}

Hi @Dat999

What title youll like to add?

Hi, “Najnowsza premiera!”

1 Like

Do you mean like this?

Try 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:
.collection__title.title-wrapper.title-wrapper--no-top-margin.page-width:before {
    content: "Najnowsza premiera!";
    font-size: 20px;
    
}
h2.title.inline-richtext.h0.scroll-trigger.animate--slide-in {
    margin-top: 30px;
}
  • And Save.
  • Let me know if you like to add more designs on that title.

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

No, I think I made it unclear, sorry. I want to add a title above my featured product. Like this:

1 Like

Hello @Dat999

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find sections > featured-product.liquid.

Step 1: Search for the product schema, then add this code:

{
"type": "product",
"id": "product",
"label": "t:sections.featured-product.settings.product.label"
},

Step 2: Search for the class “featured-product,” then add this code:


{{ section.settings.custom_title }}

Step 3:

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottom of the file:
p.custom.title {
    width: 100%;
    text-align: center;
    margin: 20px;
}

Step 4: In your Shopify Admin go to online store > themes → Customize → Home page → select Featured product.