Font size of Title for the slide in the Header Slider

I need to place somewhere h1 Title.
Is it possible to set Title for the slide in the Header Slider to H1 Font size?
Thx for answer.

Hello there,

To alter the default H2 tag to H1, you’ll need to override the slider function with a child theme. Refer to this thread that’ll tell you doing so. After you copied the function to your child theme, what you need is just replacing the below line:

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

with:

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

Regards,
Kharis

Ok, I have 4 sliders on my momepage. https://malujemeke.sk/
But I need only one h1 Title.
What can I do?

Hello there,

Try replacing this line:

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

with:

<?php if($c == 1) { ?>
  <h1 class="maintitle"><?php echo esc_html( $titles['slider_title_' . $c] ); ?></h1>
<?php } else { ?>
  <h2 class="maintitle"><?php echo esc_html( $titles['slider_title_' . $c] ); ?></h2>
<?php } ?>

This will be resulting H1 tag only for the first slide main title.

Regards,
Kharis