Love Ghost, and how using it with its limitations is forcing me to be more creative. Contrary to Wordpress, I used to over-design and customize things.
However, I’m wondering if there’s a way to add columns, like maybe 2 columns in a post or page. Could be useful to make certain pages more scalable and beautify them.
Thanks for linking it! Much easier if I can see a site, and the demo works fine for that.
So, a very simple code injection would be this:
<style>
.post-content {
columns: 2
}
</style>
If you only have text content and not very much of it, that will work OK, although you probably only want to apply that to bigger screens (because two columns on a phone - UGH), so more like this (feel free to adjust width breakpoint as needed of course!):
BUT… that’s going to look really weird on long posts. It’s going to be bad user experience to scroll the screen up and down to read the second column. And images get weird - you’d need styling to make them small enough to fit in a single column, and they’re not, currently.
A better solution is to wrap the content that you want to wrap. So in the post editor, you’d create an HTML card right before the content that you want in two columns, that contains this: <div class="double-column">
Then put in your content normally. At the end of where you want two columns to be, make another HTML card with: </div>
And finally, you need to load a style for .double-column. You can put it in code injection, or in the HTML card on the post, but it should look like: