Help! Strapi newby here! HTML question


The company I work for uses Strapi for our website. With regards to a new feature we wish to implement - we have the task to copy and paste a specific HTML code into the header of the website, then republish the site. We are struggling with how to do this.

Is there a post with instructions of how to do this within the forum or could someone help please?

Many thanks in advance!

Welcome to the forums @luke_james
I guess there is a few ways you could store it.
a) As a text field (long one depending on how much HTML it is)
b) JSON field I guess you can also use.

Though fetching the whole header etc might slow down your loading time as JS will need to fetch what it needs I would consider suggest use caching as well.

1 Like