Hx Hierarchy

Home Forums Spacious Free Hx Hierarchy

Tagged: ,

This topic contains 15 replies, has 4 voices, and was last updated by  Wolfneo 1 week, 1 day ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #1317002

    Wolfneo
    Participant

    Hi,
    This morning I did a test of my site on a French analysis site, being French, it tells me an error at the level of the “Hx”, the title tag is in “H1” and the menu is in “H3”, which breaks the hierarchy, why the description tag is not in “H2”, it is set to “P ID”, eest this normal?

    <header>
    
    <h1>	Foxdao, un nouvel ├ęclairage sur les m├ędias audiovisuels </h1> (longueur 57, ligne 60)
    
    <nav>
    
    Hx Bad Hierarchy Alert --> <h3>	Menu </h3> (longueur 4, ligne 60)
    
    </nav> (longueur 0, ligne 60)
    </header> (longueur 0, ligne 60)
    <article>
    
    <header>
    
    <h2>	The Circle, film d'anticipation avec Emma Watson, Tom Hanks </h2> (longueur 59, ligne 60)
    
    </header> (longueur 0, ligne 60)

    https://www.yakaferci.com/report/?session_id=785551&page=generic&orig_url=https%3A%2F%2Ffoxdao.net%2F#hx

    Thank you

    #1317325

    ashishsthanp
    Moderator

    @Wolfneo,
    Our theme is based on underscores framework, which has code as it is.

    Hope you understand.

    #1317342

    Wolfneo
    Participant

    Hi,
    @ashishsthanp,
    I did not know that the theme was based on a framework.
    But is I look at the file header.php of the framework, no H3 for the menu
    https://github.com/Automattic/_s/blob/master/header.php

    <nav id="site-navigation" class="main-navigation">
    			<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', '_s' ); ?></button>
    			<?php
    				wp_nav_menu( array(
    					'theme_location' => 'menu-1',
    					'menu_id'        => 'primary-menu',
    				) );
    			?>
    		</nav><!-- #site-navigation -->

    header.php from spacious

    <nav id="site-navigation" class="main-navigation" role="navigation">
    							<h3 class="menu-toggle"><?php _e( 'Menu', 'spacious' ); ?></h3>
    							<?php
    								if ( has_nav_menu( 'primary' ) ) {
    									wp_nav_menu( array( 'theme_location' => 'primary' ) );
    								}
    								else {
    									wp_page_menu();
    								}
    							?>
    						</nav>

    “Button Class” has been changed to H3

    Thank you

    #1317499

    ashishsthanp
    Moderator

    @Wolfneo,
    Thanks for pointing it out. We’ll check it.

    #1317525

    Wolfneo
    Participant

    hi,
    Understand the analysis site indicates an error, I’m just trying to understand why, I don’t question the theme, and your work.
    I like your theme too much to change

    #1317665

    ashishsthanp
    Moderator

    @Wolfneo
    The error might have caused as the code generated on your site is not according to recommended heading tag order.

    #1317690

    Wolfneo
    Participant

    Hi,
    @ashishsthanp : Yes i agree, but how to fix the error, i do not want to see the title and description appear in header, i just want to have my banner image.
    thank you

    #1317827

    ashishsthanp
    Moderator

    @Wolfneo
    Go to Header section in customizer as instructed below and check show logo only and save.
    https://docs.themegrill.com/spacious/#section-7

    #1317895

    Wolfneo
    Participant

    hi,
    That’s what I did, not anything else, not add code, nothing.
    And that’s how I have the error

    #1318376

    Nima
    Moderator

    Hi Wolfneo,

    Please, once activate our theme and notify us.
    We will have a detail look on it and will provide you a solution.

    Thanks!
    ThemeGrill Support Team

    #1318409

    Wolfneo
    Participant

    Hi,

    I activated the theme, three weeks ago, I could not have tested my site with the theme, if it was not activated
    I work with a child theme.
    Thank You

    ps : I have tested sites that have the Theme Spacious too, they also have the problem

    #1318556

    Bishal Napit
    Moderator

    Hi, Wolfneo.

    If you are asking for the header logo to display in your site then, first of all what you have to do is, you have to add the site logo via Appearance->Customize->Site Identity->Logo section. After that, you can visit Appearance->Customize->Header->Show section and then choose the required option from there and check. But, if you are asking for the heading tags, then, we will have a look on this in the version update of the theme, as it was developed way earlier via the _s theme development framework, which had created this menu toggle like that and hence it came up within the theme itself. Also, if we change it without notifying the users, many users will get effected who are using the child theme. So, we need to think for those users too. Hope you can understand this. Thank you for your patience on this. Thanks.

    #1318571

    Wolfneo
    Participant

    Hi,

    I use WordPress for ten years, I read your tutorials, I followed the procedure to put only my media header, without displaying title and descrition, This is not the logo, but a banner that I have, thanks

    See my site https://foxdao.net/

    I understand that it affects everyone, that’s why I’m asking you the question.
    I repeat, I have tested other sites that use your Spacious theme, all ofr this error.
    I do not ask, I just suggest either to pass the tag in H2 or put the menu under the tag “Button Class” and not H3
    Of course you should tell the users in the changelog.
    Not possible to make an article on your blog
    https://themegrill.com/blog/
    Then create a link after updating the theme in all dashboards of WordPress, I had that with the theme Hueman.
    Text translated by Google Translate

    Thank You

    #1323566

    Wolfneo
    Participant

    Hi,
    I changed my theme, I have a logo and no longer a banner.
    Then I checked to have the logo and the text.
    Hx’s problem is still there
    https://www.yakaferci.com/report/?session_id=801532&page=hx&orig_url=https%3A%2F%2Ffoxdao.net#hx

    I tested the demo of the theme and it’s the same.

    H1-H6 tags found
    Here is your structure of titles and subtitles Hn:
    ..<h1> Spacious
    ……<h3> Menu
    ….<h2> Blog
    ….<h2> Mac Book Air and a cup of Coffee
    ….<h2> Old wooden wall and green bicycle
    ….<h2> A boy leaning on the Wall
    ….<h2> Hello world!
    ……<h3> Recent Posts
    ……<h3> Mac Book Air and a cup of Coffee
    ……<h3> Old wooden wall and green bicycle
    ……<h3> A boy leaning on the Wall
    ……<h3> Recent Comments
    ……<h3> Archives
    ……<h3> Categories
    ……<h3> Meta
    ……<h3> Contact Info
    ……<h3> Recent Posts
    ……<h3> Old wooden wall and green bicycle
    ……<h3> A boy leaning on the Wall
    ……<h3> Hello world!
    ……<h3> Premium Themes
    ……<h3> More Free Themes

    Advice

    This subtitle structure contains at least these 2 errors:
    This page enchains an H1 tag with a H3 (“Menu”) tag, which is not correct.
    The same title label should not be found in several H1-H6 tags, which is the case for this page.

    On another analysis site he talks about missing the tag description

    Meta tags analysis.
    Description : Webpage has no description.
    The description is an factor in the on-site search engine optimization, consider to add a description to your page. For best practice describe where your webpage is about in the description.

    thank you

    #1335978

    Wolfneo
    Participant

    Hi,
    I tested a site of a person who also uses the theme Spacioux, same problem
    there is the <h1> tag and immediately after the <h3> tag.
    That breaks the hierarchy of the Hx, it should not be that menu is in <h3>

    Translation of the analysis site, please click on this link

    it would be necessary to put the code back as the frmaework beds
    <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', '_s' ); ?></button>

    and not like that
    <h3 class="menu-toggle"><?php _e( 'Menu', 'spacious' ); ?></h3>

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.