Forums

[resolved] closing div statements (3 posts)

  1. mzimmers
    Member
    Posted 2 years ago #

    Some of the files in the theme I've chosen have unclosed div statements. These appear to be closed in another file. My header.php file, for example, leaves two unclosed. The first line in my sidebar.php file closes one of them.

    Now, back in the days when I was programming, this kind of thing would have been considered very poor form. But...that was then, this is now. Is there a reason that this is done this way? It's making it kind of tough for me to understand the files.

    http://www.scopedin.com/wordpress

  2. BandonRandon
    Member
    Posted 2 years ago #

    it appears to me that all tags are eventually closed. A header and and footer file is simply a way to ensure that the tops and bottoms of your pages all look the same. Therefore, it's ok to open a div in the header as long as you make sure you close it in the footer.

    Hope this helps,
    Brandon

  3. mzimmers
    Member
    Posted 2 years ago #

    OK...thanks, Brandon. It did make me wonder whether the theme I chose was something of a "hack"...since I'm struggling so much to understand all of this stuff, I figured I should at least be studying a "proper" model, but I guess I'm OK with this.

    I'll mark this resolved...thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.