Answer the question
In order to leave comments, you need to log in
How to configure these settings?
I need to adjust the following in slic3r
1. Line
speed 2. Work area speed
3. Layer thickness
4. Table heating temperature
I've only found
layer thickness so far - layer_height
Thanks.
Answer the question
In order to leave comments, you need to log in
The main slider file is included via wp_enqueue_script .
Pay attention to $in_footer
wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
add_action('wp_enqueue_scripts', function(){
wp_enqueue_script( 'prefix_slick', get_stylesheet_directory_uri() .'/js/slick.min.js' );
// добавим произвольный код
if ( is_front_page() ) {
wp_add_inline_script( 'prefix_slick', '$(document).ready(function(){ $(".your-class").slick({ setting-name: setting-value }); });' );
} else if ( is_page_template( $template ) ) {
wp_add_inline_script( 'prefix_slick', '' );
}
});
<script type='text/javascript' src='http://site.ru/wp-content/themes/mytheme/js/slick.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$('.your-class').slick({
setting-name: setting-value
});
});
</script>
How to include scripts in Wordpress?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question