Hi, I am currently using the Debut theme on my store and would like to change the width of my blog posts as the content is too wide and difficult to read.
Does anyone know how to do this and where to go to insert the code to change it?
add code assets/theme.scss.liquid bottom of the file
please remove old css class and add this class in your css file
.template-article .page-width {max-width: 900px !important; padding-left: 0px; padding-right: 0px;}
/* This media for mobile device */
@media only screen and (max-width: 749px) {
.template-article .page-width {padding-left: 22px !important;padding-right: 22px !important;width: auto !important;}
}
Hi there i just added this code and its change the body for me, however it has also narrowed the header aswell? I want the main header to stay the same like on all the other pages. Can you please help? Thanks.
Hi, I am having the same problem on my blog (text too wide for mobile, images fine) and the above code didn’t work when I added it to the code at the bottom of the article (not well practiced in adding code). I am using the beyond theme - can anyone advise please? Thanks