Hello,
Our website is http://www.aktuelno.me it works fine on dekstiop, but recantly we`ve noticed problem with mobile homepage. It renders parts of homepagepage incorrectly and menu does not work. On posts it seems to work fine.
Here is the error we get in the console
tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3359 Uncaught TypeError: Cannot read property ‘replace’ of undefined
at HTMLImageElement.<anonymous> (tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3359)
at Function.each (jquery.js?ver=1.12.4-wp:1)
at a.fn.init.each (jquery.js?ver=1.12.4-wp:1)
at td_retina (tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3358)
at HTMLDocument.<anonymous> (tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3260)
at i (jquery.js?ver=1.12.4-wp:1)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:1)
at Function.ready (jquery.js?ver=1.12.4-wp:1)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:1)
(anonymous) @ tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3359
each @ jquery.js?ver=1.12.4-wp:1
each @ jquery.js?ver=1.12.4-wp:1
td_retina @ tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3358
(anonymous) @ tagdiv_theme.min.js?ver=9.7.3-b-modified-1562854276:formatted:3260
i @ jquery.js?ver=1.12.4-wp:1
fireWith @ jquery.js?ver=1.12.4-wp:1
ready @ jquery.js?ver=1.12.4-wp:1
J @ jquery.js?ver=1.12.4-wp:1
This is part of the code it is refering to:
function td_retina(){1<window.devicePixelRatio&&(jQuery(“.td-retina”).each(function(a){a=jQuery(this).attr(“src”).replace(“.png”,”@2x.png”);a=a.replace(“.jpg”,”@2x.jpg”);jQuery(this).attr(“src”,a)}),jQuery(“.td-retina-data”).each(function(a){jQuery(this).attr(“src”,jQuery(this).data(“retina”));jQuery(this).addClass(“td-retina-version”)}))}
Can you please help us with this.
Hi,
Please make sure that you do not have a plugin conflict with untested plugins, please deactivate all non theme plugins and child theme ( if you are using ), clear all cache and try again.
Please make sure that all the settings are like in our requirements, please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
Let me know the results!
Thank you!