Support » Plugin: Site Reviews » ID Naming Convention

  • Resolved antoniosilva

    (@antoniosilva)


    I realize this might be a bit stupid to ask but why are the ID’s for the add review form starting with numbers, shouldn’t it have at least one letter in the beginning ?

    Apparently the HTML 5 speck doesn’t enforce this per say, however it also seems like elements with those ID’s cannot be “referenced” by CSS directly OR used as part of a rule either, so this:

    #123456 {color:#000;}
    does not work

    #123456 .some-other-div {color:#000}
    neither does this, at least on FF and Chrome.

    I know I can very easily apply CSS and get around this limitation but I just wanted to make note of this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    @antoniosilva

    The ID that is automatically generated for the submission form is used internally to handle cases when there is more than one form on the same page.

    If you need to use an ID for CSS styling, you can set your own with the id option. For example:

    [site_reviews_form id="reviews-form-1"]

    #reviews-form-1 {
        color: red;
    }

    However, I will adjust the automatically generated ID in the next version to adhere to the HTML5 spec for the attribute.

    Thread Starter antoniosilva

    (@antoniosilva)

    I appreciate the quick answer and the explanation, it never ocurred to me that the id could be in the shortcode as well, I didn’t even think of it otherwise I would have searched for it in the FAQ, anyways thank you for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ID Naming Convention’ is closed to new replies.