A Select Websafe Font Family field can be inserted in:

  • an Admin Page, as an option or a user_meta
  • a User Profile, as a user_meta
  • a Metabox, as a post_meta
Sukellos Admin Builder

The code below is used to generate this section in an Admin Page, for an option:

Copy to Clipboard

A Select Websafe Font Family inherit from a Field, and an Item, then all settings described in Field Settings and Item Settings are also used.

Specific settings for Select Websafe Font Family:

Select Websafe Font Family Settings Description
css
string / Default: ”
CSS rules to be used with this field. See tutorial on CSS.
options
array / Default: array(
‘Arial, Helvetica, sans-serif’ => ‘Arial’,
‘”Arial Black”, Gadget, sans-serif’ => ‘Arial Black’,
‘”Comic Sans MS”, cursive, sans-serif’ => ‘Comic Sans’,
‘”Courier New”, Courier, monospace’ => ‘Courier New’,
‘Georgia, serif’ => ‘Geogia’,
‘Impact, Charcoal, sans-serif’ => ‘Impact’,
‘”Lucida Console”, Monaco, monospace’ => ‘Lucida Console’,
‘”Lucida Sans Unicode”, “Lucida Grande”, sans-serif’ => ‘Lucida Sans’,
‘”Palatino Linotype”, “Book Antiqua”, Palatino, serif’ => ‘Palatino’,
‘Tahoma, Geneva, sans-serif’ => ‘Tahoma’,
‘”Times New Roman”, Times, serif’ => ‘Times New Roman’,
‘”Trebuchet MS”, Helvetica, sans-serif’ => ‘Trebuchet’,
‘Verdana, Geneva, sans-serif’ => ‘Verdana’,
),
Associative array of key-value pairs containing option
Value is a font class