Custom Partials for Ghost Cards

I’m working on a theme, and I’m trying to make a custom gallery, but the markup generated by the Koenig editor is sorta getting in the way.

Is it possible to overwrite the partial template used to generate the gallery so that we can have our own markup?

It’s not possible to redefine the markup for the gallery card, but you can exclude the CSS and JS for it, which makes customization much easier.

See the docs on how to exclude assets for cards: Ghost Theme Features: The Editor - Documentation

1 Like

Thank you for this. It’s a bummer that I can’t redefine the markup, but I might be able to do something silly and rewrite the markup post render.

Also super helpful that You can exclude the assets for these. Thanks again.

1 Like