• Resolved jasonbear

    (@jasonbear)


    Hello, Aaron,

    Just an FYI . . . .

    The following code in /before-after-images-for-divi/includes/modules/BeforeAfterImage/BeforeAfterImage.php causes a W3C validation error due to a missing numerical value (i.e., “$size_width” is not parsing):

    			'<div%3$s class="%2$s et_pb_image_wrap twentytwenty-container" style="max-width: '. $size_width . 'px;">
    				%5$s
    				%4$s
    				%1$s
    			</div>',

    I could have hardcoded a numercial pixel width for the style, but I decided to style it via the Divi module instead. Hence, to get rid of the validation error, I simply removed the style code:

    			'<div%3$s class="%2$s et_pb_image_wrap twentytwenty-container">
    				%5$s
    				%4$s
    				%1$s
    			</div>',
    • This topic was modified 5 years, 10 months ago by jasonbear.
    • This topic was modified 5 years, 10 months ago by jasonbear.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘W3C validation error’ is closed to new replies.