• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newspaper H1 in Logo

H1 in Logo

Posted in: Newspaper
Post count: 14
kambyz
#118368
Jun 11, 2016 at 8:31 pm

Hi,

I was wondering why there is a h1 tag within my logo? It contains my site’s title. It seems that this problem is with newest Newspaper theme, because with 6.7 everything is fine. It’s a bad feature, since I like to add all headings myself manually. And how can I remove it since having 2 H1 tags isn’t good.

Regards,
Arturs

  • This topic was modified 10 years by kambyz.
  • This topic was modified 10 years by kambyz.
Post count: 23312
Catalin
#118544
Jun 13, 2016 at 11:52 am

Hello kambyz,

If you want to turn off the H1 tag for your logo, please notice that you will have to do it only from the code source. Please try to comment it out this snippet of the code from the logo-text.php core file lie this -> http://screencast.com/t/6jZxtG2aVVEN Please notice that this feature has been designed for the better result in SEO.

Thanks for your understanding!

Post count: 14
kambyz
#118692
Jun 13, 2016 at 11:02 pm

What exactly do I have to comment out? I found that line but what do I have to change there?

I am not sure how this feature can be useful for SEO, if post’s or page’s title already is H1.. So with this feature I am getting 2 H1s which isn’t good.

Post count: 23312
Catalin
#118792
Jun 14, 2016 at 11:40 am

Hello kambyz,

So, please notice that this type of feature is useful when you are not using the page builder plus page title template. Before this, you will have to add it manually on the page, using some text blocks with H1 text. This request was from several users and we have found this solution and have implemented in our theme. Please notice that the SEO Yost using the same method to display the H1 tag for official site, like this -> http://screencast.com/t/4wYyNEDgNJmf
If you want to get rid of this H1 logo, you will have to follow the steps -> http://screencast.com/t/HkuuAayUyX4U ->> this is an example to the header style 1. So, if you are using the header style 3, you will have to make this change in header-style-3.php.

Thanks for your understanding!

Post count: 200
DaveS
#179346
Jun 20, 2017 at 11:55 am

Hey Catalin,

is there a solution to have the H1 on the logo only on the home page? For the rest of the pages visual composer is taking care of the H1. Unfortunately we can’t use any heading on the home page for the H1, so the logo is the only possibility.

Thanks

Post count: 23312
Catalin
#179407
Jun 20, 2017 at 2:38 pm

Hello DaveS,

Please provide your website URL and also, please let us know which element you want to hive H1 tag?

Thanks for your understanding!

Post count: 200
DaveS
#179428
Jun 20, 2017 at 3:43 pm

As I mentioned, I would like to keep the H1 on the logo only for the home page.

On all other wordpress pages I have added a custom H1 tag, so I don’t need the logo to add a second H1 tag.

Post count: 23312
Catalin
#179503
Jun 21, 2017 at 9:26 am

Hello DaveS,

Unfortunately, our theme does not have any such an option that allows you to keep the H1 tag for logo only for the homepage, sorry! Notice that if you want to remove the H1 for the logo you can do it from core files but the H1 will be deleted from the entire website and not only from the homepage, sorry!

Thanks for your understanding!

Post count: 17
euw
#179522
Jun 21, 2017 at 10:10 am

As is had the SEO issue: Here is a small workaround (that works for me). I just added an if case, to check for the right page. Maybe it could help you too Dave. 🙂

1. get the id for your home page (in my example below 335)
2. copy the logo-h1.php in your child-theme folder (if you are using the Child Theme Feature): /Newspaper-child/parts/header/logo-h1.php
3. change the following code in logo-h1.php:

if (!empty($td_customLogoR)) { // if retina
    if($td_use_h1_logo === true) {
        if (is_page(335)) {
            echo '<h1 class="td-logo">';
        }
        else {
            echo '<div class="td-logo">';
        }
    };
    ?>
        <a class="td-main-logo" href="<?php echo esc_url(home_url( '/' )); ?>">
            <img class="td-retina-data" data-retina="<?php echo esc_attr($td_customLogoR) ?>" src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
            <span class="td-visual-hidden"><?php bloginfo('name'); ?></span>
        </a>
    <?php
    if($td_use_h1_logo === true) {
            if (is_page(335)) {
            echo '</h1>';
        }
        else {
            echo '</div>';
        }
    };
} else { // not retina
    if (!empty($td_customLogo)) {
        if($td_use_h1_logo === true) {
            if (is_page(335)) {
                echo '<h1 class="td-logo">';
            }
            else {
                echo '<div class="td-logo">';
            }
        };
        ?>
            <a class="td-main-logo" href="<?php echo esc_url(home_url( '/' )); ?>">
                <img src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
                <span class="td-visual-hidden"><?php bloginfo('name'); ?></span>
            </a>
        <?php
        if($td_use_h1_logo === true) {
            if (is_page(335)) {
                echo '</h1>';
            }
            else {
                echo '</div>';
            }
        };
    }
}

edit: I have some formatting errors here and don’t know how to do it better. You should format the code.

Post count: 17
euw
#179533
Jun 21, 2017 at 10:52 am

You can use is_front_page() instead of is_page(), too.

Post count: 200
DaveS
#179612
Jun 21, 2017 at 4:47 pm

Thanks, euw, that works fine! Catalin, is that a good solution?

Thanks

Post count: 9544
simchris
#179629
Jun 21, 2017 at 6:43 pm

Also note with modern HTML and document markup, you can have more than one H1 tag in different areas of the page, such as the explicit header area and expicit article area. With modern code mark-up, HTML5, etc. all modern search engines understand the difference and there is no SEO penalty. Meaning, the H1 in the header area identifies that the logo is the primary header element related to the site vs any of the navigation links, and is primary link, such as back to home page. In the article area, the H1 must match the title for the page/post as close as possible, and should be the only H1 within the article section for best placement.

Some people freak out about this without actually exploring how modern markup works. So, in case you see this in forum search – chill, baby, chill ! 😉

Post count: 10
helios87
#179739
Jun 22, 2017 at 12:19 pm

Yoast does use this for his homepage but not for individual pages. http://prntscr.com/fmrkxk

It’s cool that you are thinking about how to improve SEO but it’s clear that multiple H1 tags especially having “logo” as H1 on multiple pages will screw SEO more than it will help.

An option to enable/disable it without messing with the code would be more than welcome

Cheers

Post count: 10
helios87
#179743
Jun 22, 2017 at 12:42 pm

Ok so following Catalin’s advice to change logo-h1.php to logo.php this is the situation on my Header-style-5.php file. http://prntscr.com/fmruov

When I remove this h1 the logo is removed completely.

Appreciate any advice here.
Thanks

Post count: 9544
simchris
#179894
Jun 22, 2017 at 6:27 pm

Yoast is not the de facto expert about SEO, only one purveyor, and NOT always right. We’ve been doing it since 1995, long before the Yoast crew ever saw a web browser; we were the #1 result on Yahoo for a decade under “keyword optimization.” But whatEVAH. I give advice, not everybody gets it. It does *not* hurt your SEO either way, as the CONTENT, and the title, description first 185 characters, sub heads, outbound organic links, inbound organic links, referential content, and ORIGINAL CONTENT are what help SEO.

Again, search engines KNOW the difference between modern DOM markup for sections of pages, and KNOW what h1 does where. A logo h1 in header container is not treated as superior to h1 tag for content in article container.

SEO = “search engine optimization” — not “website optimization” — so, Google, Bing, Yandex, etc., all know how to read modern HTML5/DOM/markup.

Just FYI anybody reading this thread later.

Matt Cutts addressed this in video in 2009, although he is no longer with Google.

Google webmaster central help forum has addressed this multiple times, including this answer on this same topic from Dec. 2016:

We don't treat HTML5 differently & having multiple H1 tags on a page is fine. Be reasonable when using them, use them where they make sense. There's definitely no penalty for using H1s.

Don’t assume the sky is falling just because some ancient article tells you some bad info about pre-HTML5 era code and modern DOM usage. Modern code is very very different from 20th century webdev. Modern code has markup and sections to define a header from a footer, from an article section, etc. (for instance, Apple uses the article section on iOS to make an ‘easy to read’ version of page available and for SIRI to read).

Feel free to change stuff if you feel strongly about it, but don’t presume that Google, Bing, Yandex etc. care one way or another. Usage on the logo is correct in this context as it’s unrelated to the content SEO for the actual page content.

Hope that helps somebody as this comes up on every theme forum these days.

Kind of like the people who still freak about about the srcset attribute

Post count: 226
salocharly
#186429
Aug 1, 2017 at 6:46 pm

Well I as a person with 7 plus years of experience in SEO I can tell you for a fact that two h1 will move stuff from the first page to the third. I happened to my by mistake. This implementation is not smart at all. now I will have to change this every time I update if I forget I will loose my ranks. not cool. I would like to get a response from the devs. you gusy need to add a simple solution for this.

Post count: 200
DaveS
#186435
Aug 1, 2017 at 6:54 pm

salochary, you can use a child theme and you don’t have to make it every time you update.

Viewing 17 posts - 1 through 17 (of 17 total)
The forum ‘Newspaper’ is closed to new topics and replies.
kambyz
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo