Skip to content

Custom CSS

Content → Nova → Extras → Custom CSS contains one field, Custom CSS, in the group CSS for the whole shop. Its content is written into every page of the shop after Nova’s styles, so it takes precedence where its selectors have the same weight. The field belongs to the skin and is saved and published with it (see Skins and publishing).

A sales channel’s own value replaces the skin’s CSS as a whole; the two are not merged.

CSS for one block only belongs in the block’s own CSS field in its builder, not here.

The CSS may be at most 20,000 characters long. The shop leaves it out of the pages when it contains any of the following:

  • the character <, @import or @charset;
  • a script address (javascript:, vbscript:) or a script hook (expression(), -moz-binding, behavior);
  • a comment or a quotation mark left open, or a backslash escape outside a quoted string;
  • a url() whose address is not http(s), a path of the shop, or an inline picture (data:image/);
  • braces that do not close.