Home Forums WoodMart support forum Changing the default "H" value for the title section

Changing the default "H" value for the title section

Viewing 30 posts - 1 through 30 (of 66 total)
  • Author
    Posts
  • #33182

    lavitasarim
    Participant

    Hello 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.
    #33192

    Artem Temos
    Keymaster

    Hi,

    Could you please send us a screenshot where do you want to change it on the frontend?

    Thank you in advance.

    #33197

    lavitasarim
    Participant

    Sayfa başlığı

    Attachments:
    You must be logged in to view attached files.
    #33199

    Artem Temos
    Keymaster

    You can copy the file content.php from our theme folder to the child theme and edit this H3 tag there.

    #33207

    lavitasarim
    Participant

    Thank you very much.

    Do you also have suggestions for SEO settings? Application, advice etc.

    #33210

    lavitasarim
    Participant

    I made the changes but it did not. Is there anything else I should do?

    Attachments:
    You must be logged in to view attached files.
    #33212

    lavitasarim
    Participant

    <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() ?>

    #33213

    lavitasarim
    Participant

    <?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() ): ?>

    #33215

    Artem Temos
    Keymaster

    It seems that you didn’t activate your child theme in Appearance -> Themes.

    #33230

    lavitasarim
    Participant

    But I never passivated him. Why it can become passive?

    #33249

    Artem Temos
    Keymaster

    It 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

    #33305

    lavitasarim
    Participant

    Which file should I edit for product pages?

    I can even get information for similar pages. to avoid being asked again and again 🙂

    Thanks.

    #33311

    Artem Temos
    Keymaster

    But the product page already has an H1 tag for the title.

    #33329

    lavitasarim
    Participant

    As I asked before, Do you understand?

    Attachments:
    You must be logged in to view attached files.
    #33334

    Artem Temos
    Keymaster

    No, we don’t understand what you mean. The product on your screenshot already has the H1 tag.

    #33337

    lavitasarim
    Participant

    I want to change the h3 value of the product on the main page.

    Attachments:
    You must be logged in to view attached files.
    #33356

    Artem Temos
    Keymaster

    You can change it in the file woocommerce/content-product-base.php

    #33379

    lavitasarim
    Participant

    Sorry, 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>

    #33380

    lavitasarim
    Participant

    I 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.
    #33389

    Artem Temos
    Keymaster

    Sorry, find this tag in the file woocommerce/loop/title.php.
    As for the contact form inc/template-tags.php.

    Regards

    #33420

    lavitasarim
    Participant

    The 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.
    #33423

    Artem Temos
    Keymaster

    You 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.

    #33428

    lavitasarim
    Participant

    Can 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.
    #33435

    Artem Temos
    Keymaster

    Add 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 );
    	}
    #33446

    lavitasarim
    Participant

    Thank you.

    “Shopping cart” turns out to be h3 in analysis. How will this happen?

    Attachments:
    You must be logged in to view attached files.
    #33456

    lavitasarim
    Participant

    What 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.
    #33475

    Artem Temos
    Keymaster

    It would be better to keep H3 tags there since they should be used for headings.

    #33554

    lavitasarim
    Participant

    You need to have 4 pieces of H3 tag on a page for SEO.

    What do you recommend for this?

    Thanks.

    #33560

    Artem Temos
    Keymaster

    You can add as many H3 tags as you want with WPBakery page builder.

    #33563

    lavitasarim
    Participant

    I 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.

Tagged: , , ,

Viewing 30 posts - 1 through 30 (of 66 total)