Is there a way to justify content on blog posts or do we need to hard code it on .post-full-content .CSS file?
Yes it’s possible, supposing you’ve got {{body_class}}
included in your <body>
tag in your default.hbs
file as such: <body class="{{body_class}}">
. If that’s in place, all you have to do is add .post-template
before the content that you specifically want to adjust. You’d therefore have something like this:
.post-template p {
text-align: justify;
}
You can place that in your global code injection or your theme, up to you.
For more info on other templates you can use, see here:
1 Like
You can also add the following to your {{ghost_head}}
via the code injection
menu in the ghost admin panel:
<style type="text/css">
.post-full-content
{
text-align: justify;
}
</style>
Works perfectly for me.