How to do something to share in the block, in the Yandex collection, add a few images from the page? I tried to specify images through a comma, in the data-image:collections parameter, but it does not work.

 <div data-image:collections="https://site.ru/image1.jpeg, https://site.ru/image2.jpeg" data-title="Title" data-description="Description" data-image="https://site.ru/image1.jpeg" class="ya-share2" data-limit="14" data-services="vkontakte,facebook,odnoklassniki,collections,gplus,tumblr,pocket,viber,whatsapp,skype,telegram,twitter,blogger,lj,delicious,digg,moimir,reddit,evernote,linkedin,qzone,renren,sinaWeibo,surfingbird,tencentWeibo" data-size="m"></div> 

If you don’t specify the data-image:collections and data-image attributes at all, it takes all the images that are on the page to add to the collection, but I need something that he would take only those that I specify.

  • 2
    Add your code that shows how you specify your images. Probably a mistake there - alexoander
  • <div data-image: collections = " site.ru/image1.jpeg , site.ru/image2.jpeg " data-title = "Title" data-description = "Description" data-image = " site.ru/image1. jpeg "class =" ya-share2 "data-limit =" 14 "data-services =" vkontakte, facebook, odnoklassniki, collections, gplus "data-size =" m "> </ div> - Anton

0