WordPress.org

Ready to get started?Download WordPress

Forums

WOW Slider
[resolved] Validation error. (5 posts)

  1. AcousticAssociates
    Member
    Posted 1 year ago #

    My site http://www.aapb.co.uk produces an error when validated using this tool

    http://validator.w3.org/

    When I remove the shortcode for the WOW slider the problem disappears.

    Thanks in advance for your help.

    http://wordpress.org/extend/plugins/wowslider/

  2. WOWSlider.com
    Member
    Plugin Author

    Posted 1 year ago #

    The validator gives the following error:

    Validation Output: 1 Error

    Error Line 240, Column 4: No p element in scope but a p end tag seen.

    </p>

    It's not a part of WOWSlider code.

  3. AcousticAssociates
    Member
    Posted 1 year ago #

    When I remove the WOWSlider shortcode I do not get the error. When I put it back in the error returns. Is it something to do with how it interacts with the style?

    Thanks

  4. WOWSlider.com
    Member
    Plugin Author

    Posted 1 year ago #

    Slider is a block element based on div.
    According to specification (http://www.w3.org/TR/html-markup/p.html#p) "phrasing elements" only should be placed in P tag.
    Div is not a "phrasing element", that's why slider should be placed outside the P tag.
    But you've inserted slider inside it and this causes the error.

  5. AcousticAssociates
    Member
    Posted 1 year ago #

    I think I have fixed it by putting the shortcode inside a <div> tag dont understand it fully but I think that the wordpress editor was putting the WowSlider stuff inside the <P> tags automatically.

    Thanks - you set me on the right path there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic