Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    headline tag <h1> <h2> bug

    Bug Reports
    3
    14
    203
    Loading More Posts
    • 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.
    • dani
      dani last edited by

      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 Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

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

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • dani
          dani last edited by

          sure: https://parisitour.fr

          https://danielcampbell.ca

          1 Reply Last reply Reply Quote 0
          • mariusjopen
            mariusjopen Global Moderator last edited by

            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 Reply Quote 0
            • dani
              dani last edited by

              Here: https://parisitour.fr/test

              https://danielcampbell.ca

              1 Reply Last reply Reply Quote 0
              • edgrbnz
                edgrbnz last edited by edgrbnz

                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 Reply Quote 0
                • dani
                  dani last edited by

                  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 Reply Quote 0
                  • edgrbnz
                    edgrbnz last edited by

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

                    ✦ ✦ ✦

                    1 Reply Last reply Reply Quote 0
                    • dani
                      dani last edited by dani

                      the tag should be h2

                      https://danielcampbell.ca

                      1 Reply Last reply Reply Quote 0
                      • edgrbnz
                        edgrbnz last edited by edgrbnz

                        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 Reply Quote 0
                        • dani
                          dani last edited by

                          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 Reply Quote 0
                          • edgrbnz
                            edgrbnz last edited by

                            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 Reply Quote 0
                            • dani
                              dani last edited by

                              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 Reply Quote 0
                              • mariusjopen
                                mariusjopen Global Moderator last edited by

                                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 Reply Quote 0
                                • First post
                                  Last post
                                Post a link to where the problem is
                                I don't answer or check forum DMs, please just post on the forum.
                                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

                                Before you post:

                                Use the Search Feature. Maybe there is already a solution to your issue.

                                1. Update Lay Theme and all Lay Theme Addons
                                2. Disable all Plugins
                                3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                                4. Now see if your problem solved itself
                                5. Go here, see if your problem is listed here:
                                Troubleshooting

                                When you post:
                                1. Post a link to where the problem is
                                2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                                Thanks!

                                Online Users

                                C
                                K
                                Q

                                Recent Topics

                                • L

                                  HTML

                                • M

                                  Burger menu in desktop and tablet view

                                • M

                                  WPForms Lite not working with new theme update (5.5.5)

                                • K

                                  remove licence from old site

                                laytheme.com