Hey, I want to make the title smaller and closer to the videos. https://charmente.com/products/charmente-flared-work-yoga-pants
Topic summary
A user seeks to reduce the product title size and decrease spacing between the title and product media on their Shopify store.
Two CSS solutions were provided:
Solution 1 (LizHoang):
- Edit
base.cssfile - Add CSS targeting
h2.title.inline-richtext(font-size: 20px) and.title-wrapper-with-link(margin-bottom: 6px) - Includes before/after screenshot showing reduced title size and spacing
Solution 2 (DaisyVo):
- Edit
theme.liquidfile - Insert CSS within
{% style %}tags above the</head>tag - Targets
.title-wrapper-with-link > h2.title(font-size: 24px) and.title-wrapper-with-link(margin-bottom: 5px) - Provides step-by-step screenshots and visual result
Both approaches use !important flags to override existing styles. The main difference is file location (base.css vs. theme.liquid) and slightly different font sizes (20px vs. 24px). No response yet from the original poster on which solution was implemented.
Hi @Simon159
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
h2.title.inline-richtext.h2.title-with-highlight {
font-size: 20px !important;
}
.title-wrapper-with-link.title-wrapper--self-padded-mobile.title-wrapper--no-top-margin.animate-item.animate-item--child.index-0 {
margin-bottom: 6px !important;
}
Result
Best,
Liz
Hi @Simon159
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for “theme.liquid” file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for tag and add the following code above tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
.title-wrapper-with-link > h2.title.inline-richtext {
font-size: 24px !important;
}
.title-wrapper-with-link {
margin-bottom: 5px !important;
}
{% endstyle %}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.


