All things Shopify and commerce
Hi,
I'd like to know how to change the background colour for only a specific body of text in my blog post.
https://aussieicebaths.com.au/blogs/news/ice-baths-stress-reduction
For instance, in the above blog post, i would just like to change the background colour for the 'key takeaways' section.
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hi @marlerjake
You can do that by go to edit your blog post, click Show HTML icon
Wrap section you want to change background color in to this
<div style="background-color: #your-color-code;">
// your section text goes here
</div>
Save your blog post.
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
@marlerjake
add a class and add some some css or you can directly add the colors in the shopify blog editor also, just select the text and add color like this
This is an accepted solution.
Hi @marlerjake
You can do that by go to edit your blog post, click Show HTML icon
Wrap section you want to change background color in to this
<div style="background-color: #your-color-code;">
// your section text goes here
</div>
Save your blog post.
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
thank you so much for your swift response you beautiful human
is it possible to put a border around this the section too? so it is sort of like a container
Yes, you can do that by update wrap code like this
<div style="background-color: #your-color-code; border: 1px solid #border-color-code;">
// your section text goes here
</div>
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
thanks brother. how about if i want to add some extra distance/padding between the border and text?
Hi, you can use this code to do that
<div style="background-color: #your-color-code; border: 1px solid #border-color-code; padding: 8px;">
// your section text goes here
</div>
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
you are too good, thank you
Do you know how to edit the border size of tables in blog posts? also how to edit the colour of text in the tables and the background colour of the tables?
Could you send me a blog post link with table?
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
hey mate, quick question, how do i make this background the same size as the text?
Hi @marlerjake
Could you send me URL with this part?
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
https://aussieicebaths.com.au/blogs/news/ice-baths-muscle-soreness
I didn't end up using the code though because it looked weird being out of proportion with the text
hey brother, quick question. how do i make it so that when i do dot points, the text stays indented outside of the dot points, so it looks cleaner?
User | RANK |
---|---|
42 | |
42 | |
34 | |
24 | |
21 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023