Change font-weight for a single word

Solved

Change font-weight for a single word

Daniel19901
Shopify Partner
211 0 45

Hi, could anyone help me the change the weight of the word "GRIND" to bold without changing the other words as well? 
On the hero banner
https://marymill.amsterdam/

Daniel19901_1-1724083077232.png

 

Accepted Solutions (2)

BSSCommerce-HDL
Shopify Partner
1905 661 792

This is an accepted solution.

Hi @Daniel19901

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
.standard__heading.hero__title strong {
    font-weight: 700;
    -webkit-text-stroke: 1px black;
}
</style>

Here is result:

BSSCommerceHDL_0-1724083505364.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

BSS-TekLabs
Shopify Partner
1842 525 612

This is an accepted solution.

.hero__content .text__standard .standard__heading strong {
     font-weight: 900 !important;
    -webkit-text-stroke: 1px !important;
}

Can you add this code to last line file theme.css @Daniel19901 

BSSTekLabs_0-1724084025740.png

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell

View solution in original post

Replies 4 (4)

PaulNewton
Shopify Partner
6722 610 1433

CSS can't target single words, you need to change the underlying html to at minium wrap the word in a <span> tag, or even an <em> tag.

Then CSS can target just that word by targeting that element, or a class you put on that element.

 

While it's possible to do this with javascript it's massive overkill and doesn't address the underlying process problem of having better control over the cotnent/design/copy.

 


If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


BSSCommerce-HDL
Shopify Partner
1905 661 792

This is an accepted solution.

Hi @Daniel19901

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
.standard__heading.hero__title strong {
    font-weight: 700;
    -webkit-text-stroke: 1px black;
}
</style>

Here is result:

BSSCommerceHDL_0-1724083505364.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
PaulNewton
Shopify Partner
6722 610 1433

@Daniel19901 for any given CSS band-aid solutions try to use a custom-css setting first before modifying files code directly.

This can avoid inadvertently breaking a theme or complicating future version. upgrades

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css 

The custom-css setting does not need the surrounding opening and closing style tags: <style>...</style>


If you must modify files directly always make a back up duplicate of the theme first.

And learn how to rollback eligible files

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-b... 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


BSS-TekLabs
Shopify Partner
1842 525 612

This is an accepted solution.

.hero__content .text__standard .standard__heading strong {
     font-weight: 900 !important;
    -webkit-text-stroke: 1px !important;
}

Can you add this code to last line file theme.css @Daniel19901 

BSSTekLabs_0-1724084025740.png

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell