SiteIdentity

GitHub

Adds the following fields under the existing "Site Identity" section of the customizer. These can be easily extended or changed.

  • Company Name company_name

  • Street Address address_1

  • Street Address 2 address_1

  • City city

  • State state

  • Zip Code zip

  • Phone phone

  • Fax fax

Display

To display Site Identity in the theme:

<?php
$identity = new WPDD\SiteIdentity\Display();
// To acccess each item individually:
echo $identity->company_name; // etc..
// To display a formatted <address> block with microdata:
echo $identity->addressBlock();
?>