Tagged: x
-
AuthorPosts
-
July 7, 2016 at 12:05 am #1075931
AnonymousInactiveHi,
I’m using the standard integrity 1 layout with a static front page, and there are two H1 tags. One of them is the website name itself (the logo location)This is bad SEO practise as h1 tag has to be just 1 . Can you please tell me how can i remove the h1 from the website name?
ps – please change this from your default layout, just a suggestion.
July 7, 2016 at 2:30 am #1076046
FriechModeratorHi There,
Thanks for writing in and for the feed back. On your child theme’s \x-child\framework\views\global\ directory, create a file named _brand.php and paste the code below on it.
<?php // ============================================================================= // VIEWS/GLOBAL/_BRAND.PHP // ----------------------------------------------------------------------------- // Outputs the brand. // ============================================================================= $site_name = get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); $logo = x_make_protocol_relative( x_get_option( 'x_logo' ) ); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">'; ?> <?php echo ( is_front_page() ) ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a>Then find this line:
<h1 class="visually-hidden">' . $site_name . '</h1>You can update that
<h1>tag to<h2>or<span>Hope it helps, Cheers!
July 8, 2016 at 10:18 am #1077997
AnonymousInactiveI don’t have a child theme… i use x theme’s default layout. And according to the theme pus points, “SEO” was mentioned as a point in the theme details. This can in a way be said as “not providing as specified”. Using cornerstone is not so flexible either, as was mentioned in the theme intro.
I’m not too much of a programmer, and i can’t really know what else is going wrong with the seo in the theme.
I’m sorry, but i’ll ask you for a refund.July 8, 2016 at 1:22 pm #1078210
AlexanderKeymasterHi again,
Would you mind posting a link to your site? I’ve double checked this, and by default X does not output multiple H1 tags. In the header, it outputs a hidden H1 for your site title, but this is not present on other named pages.
Taking a look at the Integrity 1 demo, there is a single H1 tag on the home page, and other pages.
Also, on any posts, the H1 tags are within an
articleelement. This creates a new context, and according to HTML5 standards is not an SEO concern because all heads are considered part of thatarticle. For example: http://stackoverflow.com/questions/24986162/html5-nested-sections-and-heading-tags/24987792#24987792
http://webdesign.tutsplus.com/articles/the-truth-about-multiple-h1-tags-in-the-html5-era–webdesign-16824July 8, 2016 at 1:32 pm #1078236
AnonymousInactiveThis reply has been marked as private.July 8, 2016 at 3:01 pm #1078363
JoaoModeratorHi There,
We are sorry to hear that.
Feel free to ask us any questions if ever decide to use X again.
All the best
Joao
July 8, 2016 at 3:06 pm #1078368
AnonymousInactiveThanks for understanding.
July 8, 2016 at 3:32 pm #1078415
JoaoModeratorNo problems
Thanks for trying X Hopefully you will come back to us again 🙂
Have a great weekend!
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1075931 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
