• Anonymous User 20238576

    (@anonymized-20238576)


    Hello,

    I am testing Generatepress theme + GenerateBlocks.

    My Homepage contains only these elements:
    – Header
    – Content (<main>) = container block + heading
    – Footer

    After adding that container with a heading on the homepage, the HTML structure is as follows:

    <header>
    <some divs>
    …<main>
    ….<article>
    …..<some other divs related to content>
    <footer>

    I don’t have any articles(posts) on the homepage. There is literally only the container + heading.

    Why is there a <article> tag?

    • This topic was modified 2 years, 9 months ago by Anonymous User 20238576.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Leo

    (@leohsiang)

    Hi there,

    Having the <article> tag under the site-content div is a standard WordPress structure.

    That doesn’t mean you are actually displaying the posts.

    You should see the same thing when using a Twenty series standard WordPress theme:
    https://www.screencast.com/t/COGcBR7waZ

    Thread Starter Anonymous User 20238576

    (@anonymized-20238576)

    Thanks for a response @leohsiang

    I was concerned about this since I care about the clean HTML output.

    Is this a bad behaviour from WordPress?
    Is there a way to get rid of this behaviour?

    Leo

    (@leohsiang)

    Can’t see how this would be bad behaviour.

    I would recommend checking with WP’s support team for their comments.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Article tag on homepage’ is closed to new replies.