Hello there. I have a question about how to delete tag image, as I don’t need image next to each topic. However, the tage image function is there by default and I cannot choose whether to let image appear or not. Is removing the image possible? The template for the page is “directory with main topic”.
The Ghost admin panel is going to let you upload a tag image for each tag. It’s a pre-built Ember app, so not easy to suppress. The admin panel doesn’t take “directions” from the theme, except under design & branding > theme.
But nothing prevents you from ignoring that box, or editing the theme to not use the tag image if one happens to be present.
Thanks for response. Is it possible to remove image section at all? because now image template is there by default, which I don’t need
OK, that’s a theme question, not an admin panel question, so the answer should be yes! Link the site or the theme’s demo, and it’s probably just a question of adding some code injection (if you want it always hidden), or maybe making some small tweaks to the theme’s code.
Thanks so much! Can you tell me which code should I inject, maybe in the theme tag image part?
Without knowing what theme, no.
#1 Resource on EU AI ACT Compliance Can you see the page?
No, your site is set to private.
Ok, I looked at the theme code, and assume if I delete marked part then the image will be always hidden, right? or what should I change in the code? I just wanna remove the tag image, and the screenshot is how coding looks like in “tag.hbs”
See that div right above your box? If you remove the {{#if feature_image}} has-img{{/if}}, that’ll cause you to get the no-image styling also. And then I’d remove the figure tag, too.
Hang on. Are you in the right file? Tag.hbs (in the root of theme) would control display of one tag. Or is this a partial named tag.hbs also?
Am I in the wrong file? There are many hbs files in the theme file, and I clicked tag.hbs file to revise the coding.
Tag.hbs is the file used for links like /tag/your-tag-name. Is that the URL pattern of the page you’re trying to change?
Looks to me like you’re going to remove {{#if feature_image}} … {{/if}} from that page, if so. But if that’s not the url you’re trying to change, please clarify. :)
Luckily I got solution, so I solved this by injecting code in the admin > code injection:
.col-xs-12.col-md-4:has(.tag-card) { display: none; } .col-xs-12.col-md-4 + .col-xs-12.col-md-8 { margin: 0 auto; }I leave solution here for someone having same issues as mine, but thanks a million Cathy! I really appreciate your help!!!