Error when adding additional attributes
-
Hi Stefan
We try to add some additional attributes to the img tag:
'attributes' => array( 'img' => array( 'class' => 'lazyload img-responsive', 'data-sizes' => 'auto', 'data-parent-fit' => 'cover' ) )
Unfortunately we get then the following error:
<b>Warning</b>: Illegal string offset 'property' in <b>/Volumes/Data/WEB/HTDOCS/site/web/app/plugins/responsify-wp/includes/img.php</b> on line <b>43</b><br /> <br /> <b>Warning</b>: Illegal string offset 'value' in <b>/Volumes/Data/WEB/HTDOCS/site/web/app/plugins/responsify-wp/includes/img.php</b> on line <b>43</b><br /> <br /> <b>Warning</b>: Illegal string offset 'property' in <b>/Volumes/Data/WEB/HTDOCS/site/web/app/plugins/responsify-wp/includes/img.php</b> on line <b>43</b><br /> <br /> <b>Warning</b>: Illegal string offset 'value' in <b>/Volumes/Data/WEB/HTDOCS/site/web/app/plugins/responsify-wp/includes/img.php</b> on line <b>43</b><br />
Any idea?
- The topic ‘Error when adding additional attributes’ is closed to new replies.