Closed hugozap closed 8 years ago
is the <script src=/assets/pinterest/pinit.js" data-pin-build="parsePinBtns"> data-pin-build thing relevant to your case? Specifying this values names a function that can be used to call the pin code from a list of pin urls . My code is at https://github.com/donhenton/MorgFile for what its worth. I found it by searching stack overflow for 'data-pin-build' or you can check the source and see that if they find this definition in the script they assign it to the function that starts things up. HTH
data-pin-build option works ok thanks
We load article content dynamically, but the pinterest pins are not getting embedded correctly. Is there an option/method to run the widget again when the content is loaded?. From the docs, it looks like the only contemplated escenario is for sites rendered from server, where all the content is there before the script runs.