Help in adding field

I want to add pics in my own made field, which i did but when the card is previewed it dose not show my added pics, but when i add a pic in already made field, pics get added, what is the real problem here with my own added field?

I’ll help you with your custom field issue in AnkiHub. Let me search for relevant information that might address this problem.

Search

Found 5 results for 'tags:official adding custom field images pictures status:public'

Search

Found 2 results for 'tags:official custom field pictures not showing status:public'

Search

Found 5 results for 'tags:official field not showing images status:public'

Search

Found 3 results for 'tags:official configure card template images status:public'

Help with Adding Images to Custom Fields

Hi there! It sounds like you’ve created a custom field and are having trouble displaying images in it. This is a common issue that’s related to how Anki handles card templates and fields. Let me help you troubleshoot.

The Likely Problem

The most likely reason your images aren’t showing up in your custom field is that you need to update your card template to properly display content from your new field.

When you create a new field, Anki doesn’t automatically update your card templates to show that field’s content. Even though the images might be properly stored in the field, they won’t appear during review or preview until you update the template.

How to Fix It

  1. Open the card template editor:

    • Browse your cards
    • Select a card using your custom note type
    • Click “Cards…” to open the template editor
  2. Add your field to the template:

    • On either the front or back template (wherever you want your images to appear), add your field name in curly braces like this:
    {{YourCustomFieldName}}
    
    • Make sure to use the exact name of your field, including capitalization
  3. Save the changes and try previewing the card again

Why This Works

Anki requires explicit instructions in the template about where and how to display each field. Pre-existing fields work because they’re already included in the template, but new fields need to be added manually.

Additional Tips

  • HTML formatting: If your images still don’t show properly, try wrapping the field in HTML:

    <div>{{YourCustomFieldName}}</div>
    
  • Image sizing: If the images are appearing but too large/small, you can add CSS to control the size:

    .card img {
      max-width: 300px;
      height: auto;
    }
    
  • Test with simple content: Try adding plain text to your custom field first to verify the template is working, then try with images.

Let me know if this solves your issue or if you need more specific guidance!

Hello,

Are you experiencing this issue with a personal note type or with the AnKing note type used in the AnKing deck?

Could you please share some screenshots of the changes you made and the field that isn’t appearing?

This issue likely happens because adding a new field alone isn’t enough — you also need to include the field in the card’s template code for it to be displayed.

If you can provide more details about the issue and your goal, I’ll be able to assist you better! :blush:

i did what the bot said, like in browse, going to cards option and on back template i added my personal field, and i guess it worked like a charm, let me do some experiment on my own first, i will be back if the issue remains

edit: yep, it worked, thanks

1 Like

hey! is there a button on the back of the card for the field you added? I’m trying to add a custom field but then be able to have a button pop up on the back of the card like it does for First Aid, Sketchy, etc.

no, the pics just show up on its own when i click show answer,

furthermore can you help me with how to makee the pics smaller in width and height,
only thing that got added about my field in back template code is

{{Notes pics}}

hey, i guess code can not be shown in the comments

For that, you can do what the bot said. Paste the code bellow on the Styling section:

.card img {
max-width: 300px;
height: auto;
}

Then change the width for the desired size.

1 Like

Hello,

Unfortunately, this is outside the scope of this forum, as for these you will need to learn about the HTML, CSS and JavaScript programming languages.

But let me know if you need help with anything else! :grin:

3 Likes