NHSLeadership / nightingale-2-0

A WordPress theme for the NHS using the NHS.UK frontend library
Other
28 stars 15 forks source link

Custom Line 1 and Line 2 for Logo #644

Open brownoNSFT opened 2 days ago

brownoNSFT commented 2 days ago

Our trust logo runs on two lines.

The first line is Norfolk and Suffolk The second line is NHS Foundation Trust

Could we have an option to specify those two lines manually in the Customiser? as when it grabs the text for SIte Name/Description doing it that way it ruins the Site Title on pages etc.

I'm currently having to hardcode the values in partials/logo.php

<span class="nhsuk-organisation-name">Norfolk and Suffolk</span> <span class="nhsuk-organisation-descriptor">NHS Foundation Trust</span>

instead of

<span class="nhsuk-organisation-name"><?php echo esc_html( $logo_line_1 ); ?></span> <span class="nhsuk-organisation-descriptor"><?php echo esc_html( $logo_line_2 ); ?></span>