I recently downloaded a deck called Ankoma. There are several fields on the back of each card that contain extra info if I click on them. For example, every card has a citation section. If I click the citation field, it opens to display text stating where the info came from. There is also a section for personal notes. I would like this section to open automatically when I see the back side of a card, rather than having to click it every time to have it open. I know that the AnKing deck has an add on that allows you to do this, but I’m not sure if it’s easily achievable since the Ankoma deck uses different note types.
It should be simple. You will have to look at the style of your cards to see the HTML and how the deck designer is enabling the display or hide actions. There are several ways to do it, so we need to see how it is working before we advise.
<div style='font-family: "Arial"; font-size: 25px;'>
<div class="cloze-text">
{{cloze:Text}}
</div>
<br><br><hr>
<style>
img {
max-width: 450px;
height: auto;
}
.cloze-text img {
max-width: 450px;
height: auto;
}
.extra img {
max-width: 450px;
height: auto;
}
.Personal-Notes img {
max-width: 450px;
height: auto;
.citation img {
max-width: 450px;
height: auto;
}
</style>
<!-- Show the Extra field in a <details> disclosure widget if Extra is not empty-->
{{#Extra}}
<br><br>
<div class="extra-notes">
{{Extra}}
</div>
{{/Extra}}
<!-- Show the Extra field in a <details> disclosure widget if Extra is not empty-->
{{#Personal Notes}}
<br><br>
<details class="Personal Notes">
<summary>Personal Notes</summary>
{{Personal Notes}}
</details>
{{/Personal Notes}}
<!-- Show the Extra field in a <details> disclosure widget if Extra is not empty-->
{{#Citation}}
<br><br>
<details class="citation">
<summary>Citation</summary>
{{Citation}}
</details>
{{/Citation}}
You can make the collapsible sections open automatically by adding the open attribute to each of the <details> elements. For example, change this line in the back template: