Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1425691
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionI have run the following code within my functions.php
, however Lightbox, Zoom and the Slider ALL do not work. The CSS seems to load for the Swipe, however no javascript files are being loaded.
I have no errors, so what could be the issue? Is it involving the function code itself?
Running latest WooCommerce (v3.6.3) and latest Wordpress (v5.2)
function fd_theme_support() {
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
add_theme_support( 'custom-logo', array(
'height' => 100,
'width' => 400,
'flex-height' => true,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
) );
}
add_action( 'after_setup_theme', 'fd_theme_support', 10 );
I am also using Bootstrap 4 as the framework for my website...could that be interrupting the function's processes at all?
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionI have run the following code within my functions.php
, however Lightbox, Zoom and the Slider ALL do not work. The CSS seems to load for the Swipe, however no javascript files are being loaded.
I have no errors, so what could be the issue? Is it involving the function code itself?
Running latest WooCommerce (v3.6.3) and latest Wordpress (v5.2)
function fd_theme_support() {
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
add_theme_support( 'custom-logo', array(
'height' => 100,
'width' => 400,
'flex-height' => true,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
) );
}
add_action( 'after_setup_theme', 'fd_theme_support', 10 );
I am also using Bootstrap 4 as the framework for my website...could that be interrupting the function's processes at all?
Share Improve this question edited Jun 8, 2019 at 3:41 Anake.me asked May 21, 2019 at 8:18 Anake.meAnake.me 2462 silver badges11 bronze badges1 Answer
Reset to default 1Incase anyone else may run into a similar issue, the problem I was having was that I hadn't added the <?php wp_footer(); ?>
code into my footer.php
file.
If it is not added, anything that you intent to load via the footer will not work! Took me a few weeks to figure out that one line of code was breaking my workflow...
本文标签: woocommerce offtopicWC LightboxZoom and Slider not loading
版权声明:本文标题:woocommerce offtopic - WC Lightbox, Zoom and Slider not loading 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745395940a2656813.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论