$(document).ready(fucntion() {
var slidesCount = $('.slide-item').lenght
if(slidesCount > 1) {
$('.slider-wrapper').slick();
}
}}
document.addEventListener( 'wpcf7submit', function( event ) {
if ( '123' == event.detail.contactFormId ) {
alert( "The contact form ID is 123." );
// do something productive
}
}, false );
<?php
$terms = get_terms( [
'taxonomy' => 'services_tax',
'hide_empty' => false,
] );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
foreach ( $terms as $term ) {
$icon = pods_field( 'services_tax', $term->term_id, 'images', false);
$icon_url = $icon[0]['guid'];
$icon_thumb = pods_image_url ( $icon_url, 'large', 0, false ) ;
$term_link = get_term_link($term);
?>
<div class="services-item">
<a href="<?php echo $term_link;?>">
<img src="<?php echo $icon_thumb; ?>" alt="">
</a>
</div>
<?php
}
}
?>
var block = document.getElementById("chat");
block.scrollTop = block.scrollHeight;