We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Where to edit this custom coded line (Men's / Women's) to all caps in the homepage and collection?

Where to edit this custom coded line (Men's / Women's) to all caps in the homepage and collection?

RyanCheong
Shopify Partner
10 0 2

I would like to edit the (Men's and Women's) - custom coded to all caps (MEN'S and WOMEN'S) in homepage and collection page. Could you please advise where to edit the code?

 

The Shopify page is colehaan-my.myshopify.com.

RyanCheong_0-1750400775158.png

 

Replies 2 (2)

oscprofessional
Shopify Partner
16407 2444 3196

Hi @RyanCheong ,

To ensure the text transformation is applied correctly across all product titles, please add the following JavaScript code in your theme.liquid file, just before the closing </body> tag:

<script>
$('.product-block__title').each(function() {
  const html = $(this).html();
  const updatedHtml = html
    .replace(/\bMen's\b/gi, "MEN'S")
    .replace(/\bWomen's\b/gi, "WOMEN'S");
  $(this).html(updatedHtml);
});
</script>

 

Steps:

  1. In your Shopify admin, go to Online Store > Themes.

  2. Click Actions > Edit Code on your current theme.

  3. Open the layout/theme.liquid file.

  4. Scroll to the bottom and paste the above <script> block just before the </body> tag.

  5. Save the changes.

oscprofessional_0-1750403130576.png

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Hi @RyanCheong 

The simple way is to add a code to make all your product titles uppercase. 

You can do that by adding this code to Custom CSS in Sales channels > Online Store > Themes > Customize 

.product-list .product-block__title { text-transform: uppercase; }

Screenshot 2025-06-20 at 14.12.34.png

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.