• Resolved sjlim

    (@sjlim)


    Hi All,

    I’m getting a Validation of post id error as seen below

    Error Line 197 column 28: ID "post-" already defined.

    <div class="post" id="post-">

    An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

Viewing 1 replies (of 1 total)
  • What this is saying is that you have defines a style class ‘post’ for styling elements on the page. Classes can be reused.

    The code then goes on to try to declare an identifier using the same name ‘post’ and this is not allowed.

    Look in your template and in the post entry to see if the declaration is there.

    Do you have a url for people to look at?

Viewing 1 replies (of 1 total)
  • The topic ‘Validation of post id error’ is closed to new replies.