首页 文章

Woocommerce不会加载JavaScript

提问于
浏览
0

我正在WooCommerce网站上工作,现在我正在制作该网站的移动版本 .

如果您访问移动设备上的网站,将加载自定义主题(我从头开始制作) . (使用Any Mobile Theme Switcher插件)

我的问题是,WooCommerce不会在移动主题上加载javascript文件 . 这导致了:

-search栏无法正常工作

-orderby下拉不起作用

  • 切换付款方式时的结帐页面 - 包含说明的框不会更改

在桌面版上一切正常 .

网站SHOP网址:http://nectness.com/trgovina/

要查看Chrome上的移动版本,只需检查网站,切换设备模式,刷新和移动版本就会显示出来 .

搜索栏应该与桌面版本完全相同,其他所有内容都应该如此,但它不起作用 .

2 回答

  • 0
    I have check your http://nectness.com/trgovina/ site
        All functionality work in responsive (mobile view) but broke design broke in mobile view (responsive view)
    
        1) First change responsive view css for eight columns  class in header section 
          please remove width : 47% ; please giver width :100% for eight columns
        2) set responsive view css for footer-first,fc1i2,fc3,footer-last,footer-bottom copy
        i Hope you understand .No any issues in woocommerce functionality but design problem in mobile layout view (Responive view)
    
    Not changes in Desktop css but write css in responsive css
    ex.
    @media screen and (min-width: 400px)  {here write css so changes look in mobile and tablet lanscape}
    @media screen and (min-width: 600px)  {here write css so changes look in tablet }
    @media screen and (min-width: 1000px) {here write css so changes look in big tablet }
    @media screen and (min-width: 1400px) {...}
        Thanks 
        Maulik
    
  • 0

    问题解决了!这只是一个愚蠢的错误......我忘了在移动主题footer.php文件中添加wp_footer .

    如果您正在开发自己的WP主题,请确保在header.php和footer.php中添加wp_head和wp_footer

相关问题