Home › Forums › WoodMart support forum › Changing the default "H" value for the title section
Changing the default "H" value for the title section
- This topic has 65 replies, 3 voices, and was last updated 6 years, 9 months ago by Artem Temos.
-
AuthorPosts
-
January 12, 2018 at 2:19 pm #33182
lavitasarimParticipantHello there.
The “H” value of the title is “H3” by default? How can I change this? Need for SEO settings.
Do you also have suggestions for SEO settings? Application, advice etc.
Thank you.
Attachments:
You must be logged in to view attached files.January 12, 2018 at 2:32 pm #33192
Artem TemosKeymasterHi,
Could you please send us a screenshot where do you want to change it on the frontend?
Thank you in advance.
January 12, 2018 at 3:10 pm #33197
lavitasarimParticipantSayfa başlığı
Attachments:
You must be logged in to view attached files.January 12, 2018 at 3:11 pm #33199
Artem TemosKeymasterYou can copy the file
content.php
from our theme folder to the child theme and edit this H3 tag there.January 12, 2018 at 3:31 pm #33207
lavitasarimParticipantThank you very much.
Do you also have suggestions for SEO settings? Application, advice etc.
January 12, 2018 at 5:42 pm #33210
lavitasarimParticipantI made the changes but it did not. Is there anything else I should do?
Attachments:
You must be logged in to view attached files.January 12, 2018 at 5:46 pm #33212
lavitasarimParticipant<article id=”post-<?php the_ID(); ?>” <?php post_class( $classes ); ?>>
<div class=”article-inner”>
<?php if ( $blog_design == ‘default-alt’ || is_single() ): ?>
<?php if ( $parts[‘meta’] && get_the_category_list( ‘, ‘ ) ): ?>
<div class=”meta-post-categories”><?php echo get_the_category_list( ‘, ‘ ); ?></div>
<?php endif ?><?php if ( is_single() && $parts[‘title’] ) : ?>
<h1 class=”entry-title”><?php the_title(); ?></h1>
<?php elseif( $parts[‘title’] ) : ?>
<h1 class=”entry-title”>
” rel=”bookmark”><?php the_title(); ?>
</h1>
<?php endif; // is_single() ?>January 12, 2018 at 5:47 pm #33213
lavitasarimParticipant<?php if ( is_single() && $parts[‘title’] ) : ?>
<h1 class=”entry-title”><?php the_title(); ?></h1>
<?php elseif( $parts[‘title’] ) : ?>
<h1 class=”entry-title”>
” rel=”bookmark”><?php the_title(); ?>
</h1>
<?php endif; // is_single() ?><?php if ( $parts[‘meta’] && ! is_single() ): ?>
January 12, 2018 at 6:25 pm #33215
Artem TemosKeymasterIt seems that you didn’t activate your child theme in Appearance -> Themes.
January 13, 2018 at 5:24 am #33230
lavitasarimParticipantBut I never passivated him. Why it can become passive?
January 13, 2018 at 10:29 am #33249
Artem TemosKeymasterIt doesn’t work if it is not active in Appearance -> Themes. You can do your changes directly in the parent theme, but then, you will need to apply them after each theme update.
Regards
January 13, 2018 at 2:19 pm #33305
lavitasarimParticipantWhich file should I edit for product pages?
I can even get information for similar pages. to avoid being asked again and again 🙂
Thanks.
January 13, 2018 at 4:05 pm #33311
Artem TemosKeymasterBut the product page already has an H1 tag for the title.
January 13, 2018 at 5:14 pm #33329
lavitasarimParticipantAs I asked before, Do you understand?
Attachments:
You must be logged in to view attached files.January 13, 2018 at 5:23 pm #33334
Artem TemosKeymasterNo, we don’t understand what you mean. The product on your screenshot already has the H1 tag.
January 13, 2018 at 5:33 pm #33337
lavitasarimParticipantI want to change the h3 value of the product on the main page.
Attachments:
You must be logged in to view attached files.January 13, 2018 at 8:06 pm #33356
Artem TemosKeymasterYou can change it in the file
woocommerce/content-product-base.php
January 14, 2018 at 5:42 am #33379
lavitasarimParticipantSorry, I could not find it there. Can you help me? There’s no h value there.
<?php
global $product, $woocommerce_loop;$timer = woodmart_get_opt( ‘shop_countdown’ );
// Sale countdown
if ( ! empty( $woocommerce_loop[‘timer’] ) )
$timer = true;
?>
<?php do_action( ‘woocommerce_before_shop_loop_item’ ); ?>
<div class=”content-product-imagin”></div>
<div class=”product-element-top”>
” class=”product-image-link”>
<?php
/**
* woocommerce_before_shop_loop_item_title hook
*
* @hooked woocommerce_show_product_loop_sale_flash – 10
* @hooked woodmart_template_loop_product_thumbnail – 10
*/
do_action( ‘woocommerce_before_shop_loop_item_title’ );
?>
<?php woodmart_hover_image(); ?>
<div class=”wrapp-swatches”><?php echo $woocommerce_loop[‘swatches’];?><?php woodmart_compare_btn(); ?></div>
<?php woodmart_quick_shop_wrapper(); ?>
</div><div class=”product-information”>
<?php
/**
* woocommerce_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_product_title – 10
*/do_action( ‘woocommerce_shop_loop_item_title’ );
?>
<?php
woodmart_product_categories();
woodmart_product_brands_links();
?>
<div class=”product-rating-price”>
<div class=”wrapp-product-price”>
<?php
/**
* woocommerce_after_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_rating – 5
* @hooked woocommerce_template_loop_price – 10
*/
do_action( ‘woocommerce_after_shop_loop_item_title’ );
?>
</div>
</div>
<div class=”fade-in-block”>
<div class=”hover-content”>
<div class=”hover-content-inner”>
<?php
if ( woodmart_get_opt( ‘base_hover_content’ ) == ‘excerpt’ ) {
the_excerpt();
}else{
wc_display_product_attributes( $product );
}
?>
</div>
</div>
<div class=”woodmart-buttons”>
<div class=”wrap-wishlist-button”><?php if( class_exists(‘YITH_WCWL_Shortcode’)) woodmart_wishlist_btn(); ?></div>
<div class=”woodmart-add-btn”><?php do_action( ‘woocommerce_after_shop_loop_item’ ); ?></div>
<div class=”wrap-quickview-button”><?php woodmart_quick_view_btn( get_the_ID() ); ?></div>
</div>
<?php if ( $timer ): ?>
<?php woodmart_product_sale_countdown(); ?>
<?php endif ?>
</div>
</div>January 14, 2018 at 8:15 am #33380
lavitasarimParticipantI also want to make the same changes in the login and shopping cart section.
How?
Attachments:
You must be logged in to view attached files.January 14, 2018 at 8:57 am #33389
Artem TemosKeymasterSorry, find this tag in the file
woocommerce/loop/title.php
.
As for the contact forminc/template-tags.php
.Regards
January 14, 2018 at 1:07 pm #33420
lavitasarimParticipantThe value of h3 in the input section has not changed. I sent the details in addition.
Attachments:
You must be logged in to view attached files.January 14, 2018 at 1:31 pm #33423
Artem TemosKeymasterYou can simply edit this file in the child theme as other template files. You can copy the whole PHP function to the functions.php file in the child theme and then edit it.
January 14, 2018 at 2:22 pm #33428
lavitasarimParticipantCan not I use it like this one?
It did not happen this way 🙁
What exactly am I supposed to do?
Attachments:
You must be logged in to view attached files.January 14, 2018 at 3:02 pm #33435
Artem TemosKeymasterAdd this code to the functions.php file in the child theme and edit it
function woodmart_get_header_links() { $links = array(); if( ! woodmart_woocommerce_installed() || !woodmart_get_opt( 'header_links' ) && !woodmart_get_opt( 'topbar_links' ) ) return $links; $account_link = get_permalink( get_option('woocommerce_myaccount_page_id') ); $color_scheme = ( woodmart_get_opt( 'header_dropdowns_dark' ) ) ? 'light' : 'dark'; $current_user = wp_get_current_user(); if( is_user_logged_in() ) { $links['my-account'] = array( 'label' => esc_html__('My Account', 'woodmart'), 'url' => $account_link, 'dropdown' => ' <div class="sub-menu-dropdown color-scheme-' . $color_scheme . '"> ' . woodmart_get_my_account_menu() . ' </div> ' ); if ( woodmart_get_opt( 'links_with_username' ) ) { $links['my-account']['label'] = sprintf( esc_html__( 'Hello, %s', 'woodmart' ), '<strong>' . esc_html( $current_user->display_name ) . '</strong>' ); } } else { $links['register'] = array( 'label' => esc_html__('Login / Register', 'woodmart'), 'url' => $account_link ); if( woodmart_get_opt( 'login_dropdown' ) ) { $links['register']['dropdown'] = ' <div class="sub-menu-dropdown color-scheme-' . $color_scheme . '"> <div class="login-dropdown-inner"> <h3 class="login-title"><span>' . esc_html__('Sign in', 'woodmart') . '</span><a class="create-account-link" href="' . esc_url( $account_link ) . '">' . esc_html__('Create an Account', 'woodmart') . '</a>' . '</h3> ' . woodmart_login_form( false, $account_link ) . ' </div> </div> '; } } return apply_filters( 'woodmart_get_header_links', $links ); }
January 14, 2018 at 4:07 pm #33446
lavitasarimParticipantThank you.
“Shopping cart” turns out to be h3 in analysis. How will this happen?
Attachments:
You must be logged in to view attached files.January 14, 2018 at 4:53 pm #33456
lavitasarimParticipantWhat label should the products on the main page be labeled? “H” or “p”?
Which tag should I tag with? In terms of SEO.
Attachments:
You must be logged in to view attached files.January 14, 2018 at 9:02 pm #33475
Artem TemosKeymasterIt would be better to keep H3 tags there since they should be used for headings.
January 15, 2018 at 1:17 pm #33554
lavitasarimParticipantYou need to have 4 pieces of H3 tag on a page for SEO.
What do you recommend for this?
Thanks.
January 15, 2018 at 1:39 pm #33560
Artem TemosKeymasterYou can add as many H3 tags as you want with WPBakery page builder.
January 15, 2018 at 2:58 pm #33563
lavitasarimParticipantI do not know what you said.
H3 tag should not be so many. I wanted to say that.
You need to have 4 pieces of H3 tag on a page for SEO.
What should I do?
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to create new topics. Login / Register