Quark theme blogs centre-aligned default?

I’m using grav, and enjoying it so far, but the Quark v2.1.2 theme seems to default the blog posts as centre-aligned. I want them to be left-aligned.

I’ve been working mostly through the beginner-friendly admin interface to make edits and changes to the site, rather than coding.

I used Inspect to find where it says: style=“text-align: center” … I just don’t know how to use that information to re-format all the blog posts. Where can I find that in the admin space so that I can edit it?

Or, where can I find a step-by-step guide for changing the style?

One other thing: I considered trying a new theme, but A.) I don’t know how to check to see if the blog is centre-default and B.) I’m not sure if changing the theme will erase what I have on the site already/have me back at the beginning.

@AHwow, Not sure what you mean, because the blog posts are not centered. The container containing the page (content + sidebar) is centered. I cannot imagine your want the container to be left aligned leaving a white space on the right side.

Could you create a drawing, or screenshot of what you want?

Btw. Grav has been developed with developers in mind. If someone without technical knowledge can accept what a theme provides out of the box, it will be fine. Once themes needs to be adapted, knowledge of CSS and/or Twig will be needed. And also a new child theme needs to be created (using the OS command-line), in which one creates the changes.

I don’t know how to check to see if the blog is centre-default

Many themes also provide a demo site which will show you how the theme looks like.

I’m not sure if changing the theme will erase what I have on the site already

A new theme will change nothing of what you already have. But it might not work with the page templates (e.g. default.md, blog.md, etc.) you need to use for the current theme. If it doesn’t, you will need to rename the pages.

Thank you for your response! I’d be just fine with the theme out of the box, as it were, only strangely, my blog posts are centred… I don’t know why?

I’d happily use this as a learning experience (I understand some things about CSS, not much), but maybe I ought to try a different theme.

OK I just started clicking around and it seems if I go to the ‘Advanced’ tab of the blog page on the admin portal and click Default Child Type under Overrides and change it to Blog instead of default, that should do it.

@AHwow, This smells fishy…

If a page with template ‘Blog’ is being created using Admin, then its default child page template will already be ‘Item’. There is no need to override that default. And certainly not to ‘Blog’…

Unfortunately, your posts provide not much meaningful information to get a clear picture of your issue.

1 Like