• I am using a customizr child theme. Now I would like to change the title size h1 to h2. I know how to define h1 or h2 with css. I want to change h1 to h2. Because Google doesn’t like more than one h1 on a page.

    Would it be possible to have h1 in the main slider image and h2 for the rest?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think you can only change titles on all slides, so they are all h2. You can do it in your child parts/class-content-slider.php file by modifying line 215 from apply_filters( 'tc_slide_title_tag', 'h1' ) to apply_filters( 'tc_slide_title_tag', 'h2' )

    Thread Starter Ypanesa

    (@ypanesa)

    Thank you so much. It works (of course ;)).

    Hi, I want to change slider H1 to H2 but cannot find parts/class-content-slider.php. I see a file in parts/class-header-slider.php but it doesnt have the said code.
    Thanks

    Oh.. I got it. Had to changed <h1 <?php echo $color_style ?>><?php echo $title ?></h1> to <h2 <?php echo $color_style ?>><?php echo $title ?></h2>

    Thread Starter Ypanesa

    (@ypanesa)

    It is on line 430 in the parts/class-content-slider.php file.

    //title
    
    ( $data['title'] != null ) ? sprintf('<%1$s %2$s>%3$s</%1$s>',
    apply_filters( 'tc_slide_title_tag', 'h2' ),
    $data['color_style'],
    $data['title']
    ) : '',

    Multiple h1s are OK. See here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customizr Slider: How to change size from h1 to h2?’ is closed to new replies.