Skip to content

Developer Tools

StudioReference2 min read14 views

Tagged

Developer Tools let developers edit the code behind a Studio publication: the page’s own HTML and CSS, an element’s CSS classes, and the scripts the publication runs. They are activated per account through the Advanced tab of Project Settings (see Project Settings Overview); until then, the controls below are not in the editor.

The icons they add

Two icons appear at the top of the canvas, immediately to the right of the project title. The tag icon opens the Studio Code Editor in a new browser tab or window, with direct access to the underlying HTML and CSS of the current page. Changes made there are not reflected live on the canvas: save in the code editor, then click the reload icon to see them on your page.

An element’s CSS classes

Classes are added and removed at the bottom of the Properties column, underneath Accessibility. The blue + icon adds a class name; the x next to a class name removes it.

The custom code they enable

Developer Tools also enable custom code at the head or foot of the publication’s HTML, and a script that runs when a reader opens the publication. All three are fields in the Advanced tab of Project Settings, and they run in this order: custom head, custom foot, page open. Head and foot code needs its own <script> tags; the page-open script is entered without them.