Static HTML module and <h1> tags

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Graham Walters
    Senior Member
    • Feb 2013
    • 143
    • 5.1.x

    Static HTML module and <h1> tags

    Each static HTML module creates an <h1> tag for the module title, this is bad for SEO as a page should only have one <h1> tag, ? Is there a way to change this
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    You could edit the module_title template and change it to something else.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • Graham Walters
      Senior Member
      • Feb 2013
      • 143
      • 5.1.x

      #3
      Originally posted by Lynne
      You could edit the module_title template and change it to something else.
      Hmm that removes all the H1 tags and leaves the page without any, which is just as bad !

      Not as easy as I thought

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        Then add an <h1> tag to some template that is only used once on the page?

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • glennrocksvb
          Former vBulletin Developer
          • Mar 2011
          • 4005
          • 5.7.X

          #5
          Originally posted by Graham Walters
          Each static HTML module creates an <h1> tag for the module title, this is bad for SEO as a page should only have one <h1> tag, ?
          That is for the pre-HTML5 era. This has changed now. Take a look at http://webdesign.tutsplus.com/articl...ebdesign-16824

          Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

          Comment

          • Graham Walters
            Senior Member
            • Feb 2013
            • 143
            • 5.1.x

            #6
            Originally posted by Glenn Vergara
            That is for the pre-HTML5 era. This has changed now. Take a look at http://webdesign.tutsplus.com/articl...ebdesign-16824

            Thanks for that Glenn, a very interesting read.

            Does that mean when using the "Static HTML module" we should treat it as a complete document as in :

            Code:
              <!DOCTYPE html>
              <html>
                 <head>
                    <title>HTML5 markup example</title>
                 </head>
                 <body>
                    <header>
                       <h1>Whackamoon Legumes!</h1>
                       <p>We've been luvin beans</p>
                    </header>
                    <main>
                       <article>
                          <header>
                             <h1>Boiling beans</h1>
                             <p>Category: Mean Beans</p>
                          </header>
                          <h2>Is boiling beans really worth it?</h2>
                          <p>Let's be honest, it takes ages.</p>
                          <p>We advise just buying canned beans instead.</p>
                          <footer>
                             <a href="../">Back home...</a>
                          </footer>
                       </article>
                    </main>
                    <footer>
                       <p>Copyright Whackamoon Legumes 2013</p>
                    </footer>
                 </body>
              </html>

            Comment

            Related Topics

            Collapse

            Working...