1
Is there any way to do what I said in the title? I tried it this way but it seems to me that it does not perform the function:
<script>
function imgPrincProdu(){
return $('.flickity-slider > img').attr('src');
}
</script>
<meta property="og:image" content="javascript:imgPrincProdu()" />
Why don’t you assign a
id
to the tag and does in JS something likesetAttribute("content", "novo valor")
?– Woss
You can give an example, Anderson, if it’s not too much trouble?
– Lucas de Carvalho
It would be <meta id="meuid"> and in JS I take #meuid and add the value?
– Lucas de Carvalho
I already got in touch with the platform and do direct in PHP, there became more dynamic and functional. Thank you, Anderson!
– Lucas de Carvalho