Simple Theme Blog Post CSS

Highlighted
Tourist
10 0 3

Hello all! 

I am still building my shopify page and recently added a blog. I would like to add some customer css to the blog: https://www.sextra69.com/blogs/the-ultimate-beginners-guide-to-sextoys-for-men-and-women/the-ultimat... 

.content {
    width800px;
    marginauto;
    font-family'Roboto'sans-serif;
    text-alignjustify;


I could add it to the page but that's not what I want. I need it for my blog post. Where should I add the css code? 

Extra: If someone could explain to me what's the difference between blog and pages, that'd be helpful! I want to update new articles regularly in my shop, which one should I use? 

Here's my shop: www.sextra69.com

Thank you very much!  
 
0 Likes
Highlighted
Shopify Partner
833 127 141

Find your "blog.liquid" file & add the following at the top of the file:

 

<style>
.content {
    width: 800px;
    margin: auto;
    font-family: 'Roboto', sans-serif;
    text-align: justify;
} 
</style>

 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkconsultancy.com
K&J
0 Likes
Highlighted
Tourist
10 0 3

Hey thanks for the answer. But seems like it doesn't work. 

 

libicap_0-1599396668479.png

 

0 Likes
Highlighted
Shopify Partner
833 127 141

Add !important after the values and before the ";"

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkconsultancy.com
K&J
0 Likes
Highlighted
Tourist
10 0 3

Hey! Thank you again. 

I tried but it didn't work. However, I put the CSS code inside theme.scss.liquid, at the bottom, and it worked.  


0 Likes