Hello everyone, I’m new to Ghost, I’m still in the first steps of my blog configuration.
Of all the themes I’ve tried, the one I like the most and that adapts better to the type of content I want to publish is Casper.
One of the things that I don’t like, and have been struggling with, is the Featured Image. I want to add featured images to my posts, but I don’t like the way they are displayed. What I really wanted, was for my posts to display the featured images as the Liebling theme does. Is there any code injection I can use to make it look like this in Casper?
Basically, I’m looking for a code injection or some code to include in the Casper theme that mimics the appearance of Liebling’s posts and pages. I believe it is called a “Hero Image”, a featured image with the full width of the screen and along the top navigation.
The code injection for this would look a bit messy with JavaScript moving elements around. It can be done but you’ll need to edit the post.hbs and move the if block for feature_image to the top with some other css changes. Image should be object-fit: cover etc. A quick edit gave me this:
To me it’s all messy because I don’t know anything about CSS, Java, etc
That’s why I asked if there was a code injection because it’s easier for me to use that than editing a hbs file.
But that’s precisely the result I wanted for my pages and posts.
I’ll try to mess around with the post.hbs and page.hbs, and see if I can manage it.