Hello,
I would like to center the contents on blog page on desk top. I read many related articles and tried several codes but no success…
I would very appreciate if you could show me which code to add and exactly where.
Thank you!!
A user seeks help centering blog article content on desktop for the Minimal theme. They’ve shared their store URL (toolly.de) and a specific blog page example.
Attempted Solutions:
timber.scss or assets/theme.css.grid margin-left to 90px with media queriesCurrent Problem:
theme.scss.liquid fileStatus: Unresolved and urgent. The user needs immediate help to fix the broken site before addressing the original centering issue.
Hello,
I would like to center the contents on blog page on desk top. I read many related articles and tried several codes but no success…
I would very appreciate if you could show me which code to add and exactly where.
Thank you!!
@TomoTana
We are happy to help you .
kindly share your store url.
Thank you
I can’t get blog in your store or i didn’t find any more.
hello @TomoTana
can you please share your content on blog page preview URL
@TomoTana
add this code in timber.scss
.grid, .grid--full, .grid--rev, .grid-uniform {
margin-left: 90px !important;
}
thank you.
hello @TomoTana
please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.
@media screen and (min-width: 769px) {
.template-article .grid {
margin-left: 90px !important;
}
}
HI,
I tried to add the code and it seemed it did not work, so I deleted the code now the whole site looked totally messed up.
I get the error messsage “Invalid CSS after “}”: expected “}”, was “” at 3167”
Now I realized mine was assets/theme.scss, not assets/theme.css.
Is that the reason? I need a immediate help.
thank you.
hello @TomoTana
can you please share your assets folder screenshot
Hi,
I tried the code you provided and the article was centered but a little gap on the right side of screen appeared (please see below screenshot), so I deleted the code and tried the different code which was provided by another shopify partner, but it did not seem to work, so I deleted that code and now my site is completely messed up.
I even get an error message “Invalid CSS after “}”: expected “}”, was “” at 3167”.
I am contacting this other partner for help to correct this issue. When this problem is solved, I will ask you again to fix the gap on the right side of the screen.
Thank you.
This is the screen shot of the last part of theme.scss.liquid.
Please help, very upsetting…
Thank you.
great answer. tks