Synchronizing changes in the html and css template in my notes

Hi

I just made some changes to the HTML and CSS in my notes

Does AnkiHub allow syncing of these changes?

Thanks

Hello,

It depends. You can certainly edit your CSS. However, depending on which edits you make they may be preserved, or may be overwritten, by Ankihub upon your next sync.

There is a certain degree of modification that is possible, though some elements are protected in order to prevent drastic, or breaking, alterations to the note type and its functions.

Please let me know if that answers your question, and if there’s anything else I can help with. :slight_smile:

1 Like

Thanks for your reply

I made changes and added a field that was not visible and some spicing corrections.

Are there any changes, such as adding scripts, that cannot be done?:thinking:

It’s less a question, in most cases, of what can or cannot be done and more a question of which changes will be overwritten and/or simply break a sync.

In most cases, to my understanding, if you start adding fields to the note type/s you run a significant risk of causing errors with the syncing process, as the server copy and your local copy are no longer in compatible agreement.

As an easy example, if you go to the edit screen for a given card and click on β€˜Cards’ as below:

image

You should get a screen that looks like this:

image

From here you will see a bunch of the CSS code and formatting instructions for the note. Most, if not all, of this is synced to Ankihub and in most cases will be overwritten if you make changes to it (this is not a hard-and-fast rule).

However, if you scroll to the very bottom you will see this message:
image

If you make changes outside of this boundary, those changes are more likely to either not break the note type, not be overwritten, or both. There are limitations to what changes can be made without causing agreement issues, however.

Please let me know if that answers your question, and if there’s anything else I can help with. :slight_smile: