e1commerce.com
Ask a question
  • New questions
  • With the answers
  • Unanswered
  1. Home
  2. html - remove bold from headings on all product pages (shopify)

341 votes
1 answers

html - remove bold from headings on all product pages (shopify)

Solution:

You can put it this way:

First: note the arrangement of your stylesheet. They overwrite eachother. Secondly, add a new line to your css: h1 > strong {font-weight: 300!important;}

In your attempt you're trying to change the h1 only, but you want to change this particular combination. That's what you'll do with this suggestion.


Undefined asked
2023-03-6


405
votes

Answer

Solution:

[Not strictly addressing Shopify here]

This solution applies in general using vanilla CSS but I'm not familiar with theshopify platform and I can't be sure how it's expected to be instructed and if there's a limited support for any possible nuance supported by web standards.

Since the<strong> tag is nested inside the<h1> it will hold its own style even if the parent has a lighterfont-weight.

To address that scenario using css only, you may have a rule with a selector targeting<h1> descendants like this:

h1 *{
  font-weight: 300;
}
<h1>
  <strong>Test</strong>
</h1>
Undefined answered
2023-03-6
Link to answer


Source

Didn't find the answer?

Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Similar questions

Find the answer in similar questions on our website.

857 html - remove bold from headings on all product pages (shopify)
952 liquid - Shopify: Product grid - how overwrite a Product STOCK-OUT msg, with "Coming Soon" if it's in a ComingSoon collection
497 html - How to get all blogs in Shopify store on any page?
980 Can not remove ERR_NGROK_6024 when using Shopify App Proxy get call
586 liquid - Shopify search for related products is not returning similar tagged products
505 Python Product Tag Update using Shopify API - 400 Error - Product :Required Parameter Missing Or Invalid
945 How to update product price with graphql on shopify if there is no product variant
306 @shopify/shopify-api nodejs - Set permanent access token for private app installed on only one store
528 express - 404 error calling GET API from a shopify theme-extension
525 Want to add a Product Detail Dropdown (That shows Product title, image and price) inside a contact form in shopify

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.







Latest questions:

355 Get product description with metafield in shopify

717 html - CSS animation looks wrong/broken in some places on iOS devices only?

526 Shopify refund amount wrong when refund in pending state (Admin REST API)

300 How to Add Fonts to the Shopify Admin

677 css selectors - Custom font for specific language shopify



© 2021-2023

E-mail: infot@e1commerce.com