Issue
How can I remove ?v=2222dddhh4 from img srouce in shopify ?
Main source:
I want:
<img src="https://cdn.shopify.com/s/files/1/1608/4177/files/Size_Guide.png>
Solution
using javacsript and jquery maybe help you:
$('img').each(function(){
var _src = $(this).attr('src');//get attribute src
_src = _src.replace(/\?v=.*?$/g,'');
$(this).attr('src',_src);//replace your same img
$('span').append(_src);//for test
});
Answered By - miglio Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.