Main title head slider - change from H1 to H2

Hi, how can I change the main title on the head slider from H2 to H1?
Thanks in advance.

Hello there,

As the main slider is wrapped in a pluggable function sydney_slider_template(), we can override it over child theme’s functions.php file. Download pre-defined Sydney child theme from this link if you haven’t yet run any. Copy this PHP code and put it to the most bottom line of functions.php file of child theme. Find this line:

<h2 class="maintitle"><?php echo wp_kses_post( $titles['slider_title_' . $c] ); ?></h2> 

and replace it to

<h1 class="maintitle"><?php echo wp_kses_post( $titles['slider_title_' . $c] ); ?></h1>

Save changes, then install and activate the child theme.

If you don’t want to run a child theme, alternatively you can use functionality plugins like Code Snippets.