D
D
Death Gaze2016-12-02 12:34:26
3D printers
Death Gaze, 2016-12-02 12:34:26

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

2 answer(s)
R
Roman, 2017-03-28
@AltaiR-05

The main slider file is included via wp_enqueue_script .
Pay attention to $in_footer

wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );

Additional code can and IMHO be correctly embedded directly into the page code (i.e. without creating a separate file) using wp_add_inline_script .
Full example:
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', '' );
  }
});

Get in HTML code
<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>

V
Vasya Petrov, 2017-03-28
@VasyaPertrov

How to include scripts in Wordpress?

With help https://developer.wordpress.org/reference/function...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question