# Templates In the last Shoptet version, it is not possible to change the e-shop design via API. However, it is possible to include HTML codes into previously defined places. This enables the code or link to a file containing additional CSS styles or JavaScript codes to be entered. The same functionality is now included within the e-shop administration (`/admin/html-kody/`, `HTML code` tab). There are 3 possible locations, where HTML codes can be inserted: * `common-header` - the code will be inserted into each e-shop page header (``) * `common-footer` - the code will be inserted into each e-shop page foot (before end ``) * `order-confirmed` - the code will be inserted in the page confirming the order (the "thank you page") The inserted codes may come from 3 sources, and they are included in the following order: 1. Codes from addons (the addon defines HTML codes to be inserted for anybody, who installs the addon). If there are more of these, they are inserted progressively, the order cannot be relied upon. 2. Codes entered via API. Each addon can insert only one code into each location. If there are more of these addons, the codes will be inserted progressively, one after another, the order cannot be relied upon. 3. The code entered in the administration GUI (`/admin/html-kody/`, `HTML code` tab). ## Listing of codes - [GET /api/template-include](https://api.docs.shoptet.com/shoptet-api/openapi/templates/getlistingofhtmlcodes.md): This lists currently defined HTML codes for this addon, in all possible locations. Each addon sees only “its own” codes, it cannot see other codes of other addons, not even from the same developer. Also, it does not see the code inserted within the administration. ## Inserting and editing codes - [POST /api/template-include](https://api.docs.shoptet.com/shoptet-api/openapi/templates/createandedithtmlcodes.md): This adds new or changes the current (if exists) HTML code. It is possible to enter 1-3 changes at a time (typically 3 possible locations). If the value already exists, it is simply overwritten. The limit for HTML code is 8192 characters. In case that any of the requirements fail, the detailed information is returned in the field. ## Removal of code - [DELETE /api/template-include/{location}](https://api.docs.shoptet.com/shoptet-api/openapi/templates/deletehtmlcode.md): This call can be used to delete the existing code from the given location. if the code for the given (position) does not exist, the API returns