php - To link website logo to external url from backend interface in drupal 7 -
need link website logo external url backend interface in drupal 7.
now hard coded page.tpl.php file.
is there option add backend?
there no default option linking website logo external url.
we need create field in end theme settings.
create page theme-settings.php inside theme folder following code
function theme_form_system_theme_settings_alter(&$form, $form_state) {
$form['theme_settings'] = array(
'#type' => 'fieldset', '#title' => t('theme settings')
);
$form['theme_settings']['theme_logourl'] = array(
'#type' => 'textfield', '#title' => t('logo url'), '#default_value' => theme_get_setting('theme_logourl'), '#description' => t("logo url external linking"), ); return $form; }
go , check theme settings page - appearance/settings/theme
there new text filed enter external url
Comments
Post a Comment