SupportProduct title is redundantly integrated in the source code
AvatarRobert Köhler asked 3 months ago

Hi
I am desperately searching.
When creating a product, the title is added twice in the source code.
First at <div class=”site-header” style=”height:100vh; background-color:#000″><div class=”site-header-text-wrap” style=”color:#fff”><h1 class=”page-title-text” style=”color:#fff”>
Second at <div class=”summary entry-summary”>
<div class=”product-detail”>
<div class=”header-detail”>
<h1 class=”product_title”>
I can´t find the first one to remove it. Can you tell me in which file I can find it?
Robert

5 Answers
AvataraThemeArt Staff answered 3 months ago

Hi
Please create a child theme with ( https://wordpress.org/plugins/child-theme-generator/ )
then simply add bellow code inside child theme function.php

remove_action( 'shopstore_header_container', 'shopstore_static_banner_container',40 );

Thanks

AvatarRobert Köhler answered 3 months ago

I tried that but it woun´t work. 
 
<div class=”site-header” style=”height:100vh; background-color:#000″><div class=”site-header-text-wrap” style=”color:#fff”><h1 class=”page-title-text” style=”color:#fff”> 
 
Is still there. Could you tell me in which file I can find this? So I could remove it.

AvataraThemeArt Staff answered 3 months ago

Hi
we have released a new version , please update your copy to 3.7

it’s not a good practice update core theme, you will be lost feature update or feature update will effect. what’s ever you can check.

inc/theme-layout.php
add_action( 'shopstore_header_container', 'shopstore_static_banner_container',40 );

if you add below function inside child theme function.php. It must be work 100%

// Disable hero section on frontend
remove_action( 'shopstore_header_container', 'shopstore_static_banner_container',40 );
// Disable hero heading text on frontend
add_filter( 'show_admin_bar', '__return_false' );
AvatarRobert Köhler answered 3 months ago

Isn´t possible to delete the site header on the Woocommerce shop pages? There is no need for a big header Picture + H1 Headline. The product title should be H1 an that’s it (SEO).
Maybe you can help me with that?

Greetings and thanks!
 

AvataraThemeArt Staff answered 3 months ago

please use bellow


if( is_product() || is_shop() ){
remove_action( 'shopstore_header_container', 'shopstore_static_banner_container',40 );

}