• So im currently building this web page and for seo purposes i want to change the h1 tag on the hero section with a h4 or h5 tag, any ideas on how to do that?

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Do you want to change the tag itself or just have the h4/h5 style? It’s a big differennce in what you’d have to do.

    First option is to create a child theme and edit code. Second is just some CSS.

    Thread Starter baristol

    (@baristol)

    The first. I already have the child theme but I don’t know where I should edit the code.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’ll need to figure out which of the theme’s PHP files puts out that line (or lines), copy that to your child, and edit. The plugin “show current template” can help you with this.

    Thread Starter baristol

    (@baristol)

    Yes, I found the function, its this:

    public function show_big_title_content( $content ) {
    
    		$alignment               = get_theme_mod( 'hestia_slider_alignment', 'center' );
    		$slider_elements_classes = $this->get_big_title_elements_class( $alignment );
    		$this->maybe_render_widgets_area( $alignment, 'right', 1 );
    		?>
    		<div class="
    		<?php
    		if ( ! empty( $slider_elements_classes['slide'] ) ) {
    			echo esc_attr( $slider_elements_classes['slide'] );
    		}
    		?>
    		">
    			<?php if ( ! empty( $content['title'] ) ) { ?>
    				<h1 class="hestia-title"><?php echo wp_kses_post( $content['title'] ); ?></h1>
    			<?php } ?>
    			<?php if ( ! empty( $content['text'] ) ) { ?>
    				<span class="sub-title"><?php echo wp_kses_post( $content['text'] ); ?></span>
    			<?php } ?>
    			<?php if ( ! empty( $content['button_link'] ) && ! empty( $content['button_text'] ) ) { ?>
    				<div class="buttons">
    					<a>"
    							title="<?php echo esc_html( $content['button_text'] ); ?>"
    							class="btn btn-primary" <?php echo hestia_is_external_url( $content['button_link'] ); ?>><?php echo esc_html( $content['button_text'] ); ?></a>
    					<?php hestia_big_title_section_buttons_trigger(); ?>
    				</div>
    			<?php } ?>
    		</div>
    		<?php
    		$this->maybe_render_widgets_area( $alignment, 'left', 1 );
    	}

    so i copied the file to my child theme’s folder and changed the tags, but its not updating in the page…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://www.ads-software.com/support/theme/hestia#new-post so the theme’s developers and support community can help you with this.

    Thread Starter baristol

    (@baristol)

    Ok thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change html title tag on hestia/orfeo’ is closed to new replies.