Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. headline tag <h1> <h2> bug

headline tag <h1> <h2> bug

Scheduled Pinned Locked Moved Bug Reports
14 Posts 3 Posters 514 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dani
    wrote on Oct 3, 2019, 8:59 AM last edited by
    #1

    hello,
    i created h1 and h2 text formats. when i use them the code assigns both to h1. i tested a few different ways, but it always defaults to using the <h1> tag in the code.

    1_1570093145966_Screen Shot 2019-10-03 at 10.57.00 AM.png 0_1570093145963_Screen Shot 2019-10-03 at 10.55.29 AM.png !

    thanks!
    daniel

    https://danielcampbell.ca

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Oct 4, 2019, 2:21 PM last edited by
      #2

      Dear @dani
      can you provide us with a link to your website?

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dani
        wrote on Oct 4, 2019, 2:50 PM last edited by
        #3

        sure: https://parisitour.fr

        https://danielcampbell.ca

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Oct 8, 2019, 9:38 AM last edited by
          #4

          Dear @dani
          can you create an example page with only two fonts?
          One in H1 and the other in H2?

          Then it is easier to check.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dani
            wrote on Oct 9, 2019, 9:09 AM last edited by
            #5

            Here: https://parisitour.fr/test

            https://danielcampbell.ca

            1 Reply Last reply
            0
            • E Offline
              E Offline
              edgrbnz
              wrote on Oct 9, 2019, 1:26 PM last edited by edgrbnz Oct 9, 2019, 9:28 AM
              #6

              The classes ._h1 and ._h2 are applied to the headline element as expected.
              Looks totally fine to me… or am I missing something?

              ✦ ✦ ✦

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dani
                wrote on Oct 9, 2019, 1:29 PM last edited by
                #7

                0_1570627757708_Screen Shot 2019-10-09 at 3.28.42 PM.png
                h2 isn't h2... it's in the code as h1

                https://danielcampbell.ca

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  edgrbnz
                  wrote on Oct 9, 2019, 1:34 PM last edited by
                  #8

                  Yes, the ID is h1 but the class is h2.

                  ✦ ✦ ✦

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dani
                    wrote on Oct 9, 2019, 2:31 PM last edited by dani Oct 9, 2019, 10:32 AM
                    #9

                    the tag should be h2

                    https://danielcampbell.ca

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      edgrbnz
                      wrote on Oct 9, 2019, 3:43 PM last edited by edgrbnz Oct 9, 2019, 11:44 AM
                      #10

                      I could be…

                      Inside Lay Theme <h1> is the ID for a headline in general. It could also literaly be called headline. So all headlines are <h1> inside Lay. Since there is no real spot where you define how h1–h5 look like Lay cannot do it in a different manner.

                      In this case h2 is how you titled the format. If you would have titled it second-headline the code would be like: <h1 class="_second-headline"> … </h1>

                      So yes the syntax is not the way one would usually expect it to be but I don’t see any big, issues with that. (If there are any I’d be happy to learn!)

                      The only way this could work as you suggested would be if there was a section where one could define all the basic headlines from h1–h5 so these can be called with the respective IDs.

                      As far as I know google prefers ´<h1>´ for crawling your content / website so (imho) there is no big issue aside from a markup that just looks a bit different.


                      Please correct me if I’m wrong @mariusjopen and @arminunruh…

                      ✦ ✦ ✦

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dani
                        wrote on Oct 9, 2019, 3:59 PM last edited by
                        #11

                        i'm working with an SEO manager and she says it's important, for SEO, to have h1 and h2 as distinct.

                        https://danielcampbell.ca

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          edgrbnz
                          wrote on Oct 9, 2019, 4:07 PM last edited by
                          #12

                          Well… I guess there’s no way to do this rn 🤷‍♀️It works as described in my last post.

                          You can however install plugins like Yoast to SEO optmise your site. Since these plugins are prone to cause errors and siginificantly will increase your websites loading time I personally wouldn’t recommend to do so…

                          Perhaps @mariusjopen or @arminunruh can give some more insight into this.

                          ✦ ✦ ✦

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            dani
                            wrote on Oct 9, 2019, 4:51 PM last edited by
                            #13

                            yoast is installed, but since i'm not managing the SEO i'm just trying to follow the chain of command.

                            https://danielcampbell.ca

                            1 Reply Last reply
                            0
                            • mariusjopenM Offline
                              mariusjopenM Offline
                              mariusjopen
                              Global Moderator
                              wrote on Oct 10, 2019, 9:37 PM last edited by
                              #14

                              Dear @dani
                              yes. YOAST is a good way to start.
                              Probably it is not possible to follow ALL SEO tricks :-)

                              But YOAST might help out a lot!

                              Best!

                              Marius

                              www.mariusjopen.world

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes

                              2/14

                              Oct 4, 2019, 2:21 PM

                              12 unread

                              I also code custom websites or custom Lay features.
                              💿 Email me here: 💿
                              info@laytheme.com

                              Before you post:
                              1. When using a WordPress Cache plugin, disable it or clear your cache.
                              2. Update Lay Theme and all Lay Theme Addons
                              3. Disable all Plugins
                              4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                              This often solves issues you might run into

                              When you post:
                              1. Post a link to where the problem is
                              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                              Online Users
                              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                              laytheme.com
                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              2 out of 14
                              • First post
                                2/14
                                Last post
                              0
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Search