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.

  1. 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;  } 
  1. go , check theme settings page - appearance/settings/theme

    there new text filed enter external url


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -