Header Image area Logo, instead of words?

Is there a quick, easy way to add a logo on top of the header image, above the button(s) instead of the standard header text?

Hi,

Yes, its possible but I suggest you to create a child theme first.
Here is the steps:

  1. create a child theme and activate it.
  2. paste the PHP function below to the functions.php file within your child theme:
function perth_header_text() {
  if ( !function_exists('pll_register_string') ) {
	$header_text 		= get_theme_mod('header_text', 'Welcome to Perth');
	$button_left		= get_theme_mod('button_left', 'Start here');
	$button_right 		= get_theme_mod('button_right', 'Read more');
  } else {
	$header_text 		= pll__(get_theme_mod('header_text', 'Welcome to Perth'));
	$button_left		= pll__(get_theme_mod('button_left', 'Start here'));
	$button_right 		= pll__(get_theme_mod('button_right', 'Read more'));	
  }
  $button_left_url	= get_theme_mod('button_left_url', '#primary');
  $button_right_url 	= get_theme_mod('button_right_url', '#primary');

  echo '<div class="header-info">
	<h3 class="header-text"><img class="site-logo" src="' . esc_url(get_theme_mod('site_logo')) . '" alt="' . esc_attr(get_bloginfo('name')) . '" /></h3>
	<div class="header-buttons">';
	if ($button_left_url) {
		echo '<a class="button header-button left-button" href="' . esc_url($button_left_url) . '">' . esc_html($button_left) . '</a>';
	}
	if ($button_right_url) {
		echo '<a class="button header-button right-button" href="' . esc_url($button_right_url) . '">' . esc_html($button_right) . '</a>';
	}
        echo 	'</div>';
  echo '</div>';
}
  1. open functions.php file in your parent theme and change this line:
function perth_header_text() {
  if ( !function_exists('pll_register_string') ) {
	$header_text 		= get_theme_mod('header_text', 'Welcome to Perth');
	$button_left		= get_theme_mod('button_left', 'Start here');
	$button_right 		= get_theme_mod('button_right', 'Read more');
  } else {
	$header_text 		= pll__(get_theme_mod('header_text', 'Welcome to Perth'));
	$button_left		= pll__(get_theme_mod('button_left', 'Start here'));
	$button_right 		= pll__(get_theme_mod('button_right', 'Read more'));	
  }
  $button_left_url	= get_theme_mod('button_left_url', '#primary');
  $button_right_url 	= get_theme_mod('button_right_url', '#primary');

  echo '<div class="header-info">
	<h3 class="header-text">' . esc_html($header_text) . '</h3>
	<div class="header-buttons">';
	if ($button_left_url) {
		echo '<a class="button header-button left-button" href="' . esc_url($button_left_url) . '">' . esc_html($button_left) . '</a>';
	}
	if ($button_right_url) {
		echo '<a class="button header-button right-button" href="' . esc_url($button_right_url) . '">' . esc_html($button_right) . '</a>';
	}
	echo 	'</div>';
  echo '</div>';
}

to this line:

/* function perth_header_text() {
  if ( !function_exists('pll_register_string') ) {
	$header_text 		= get_theme_mod('header_text', 'Welcome to Perth');
	$button_left		= get_theme_mod('button_left', 'Start here');
	$button_right 		= get_theme_mod('button_right', 'Read more');
  } else {
	$header_text 		= pll__(get_theme_mod('header_text', 'Welcome to Perth'));
	$button_left		= pll__(get_theme_mod('button_left', 'Start here'));
	$button_right 		= pll__(get_theme_mod('button_right', 'Read more'));	
  }
  $button_left_url	= get_theme_mod('button_left_url', '#primary');
  $button_right_url 	= get_theme_mod('button_right_url', '#primary');

  echo '<div class="header-info">
	<h3 class="header-text">' . esc_html($header_text) . '</h3>
	<div class="header-buttons">';
	if ($button_left_url) {
		echo '<a class="button header-button left-button" href="' . esc_url($button_left_url) . '">' . esc_html($button_left) . '</a>';
	}
	if ($button_right_url) {
		echo '<a class="button header-button right-button" href="' . esc_url($button_right_url) . '">' . esc_html($button_right) . '</a>';
	}
	echo 	'</div>';
  echo '</div>';
} */

That’s it, please let me know how it goes.

Regards,
Awan

ouch… my eyes went out of focus there for a minute! I will tackle this tomorrow and post how easy or not easy it is. Thank you for your help. You always have an answer! J