Hi, We would like to widen the width of the blog content. Can someone help me with this?
Topic summary
Issue: A user wants to increase the width of their Shopify blog post content.
Initial Solution: A CSS code snippet was provided to modify the .page-width--narrow class, setting max-width to 1200px and adjusting table styling.
Problem Encountered: The user received an error message when attempting to save the custom CSS (“Correct the errors to save your custom CSS”). A screenshot was shared showing the error.
Alternative Solutions Offered:
- A simplified CSS version targeting
article.article-template .page-width--narrowwithout!importantflags - A workaround using a custom liquid section with
<style>tags instead of the custom CSS field
Status: The discussion remains open with multiple solutions proposed but no confirmed resolution yet.
Hi @User026
Add this CSS to to the blog post > custom CSS section.
.section .page-width--narrow{max-width:1200px!important;margin:0 auto}
.article-template table{width:100%!important;max-width:100%!important}
.article-template td{padding:12px 15px}
Hope that helps.
Add this css in custom css file
article.article-template .page-width–narrow {
max-width: 1200px;
}
Hi @User026
Ok, try this. Add a custum liquid section on your blog post template and add the following code.
