Syntax Error: Import Declarations May Only Appear at Top Level of a Module

I am trying to use a plugin called “Simplebar” found on GitHub, GitHub SimpleBar but after downloading the scripts and looking at the simple.js script, it looks like it has an error “SyntaxError: import declarations may only appear at top level of a module” At the top of the simplebar.js file there are some import … Read more

Integrating slick.js into wordpress

Adjusted some of your code. This should work: [php]<?php /** * Block Name: Testimonials * * This is the template that displays the testimonials loop block. */ $argType = get_field(‘loop_argument_type’); if ($argType == "count") : $args = array( ‘orderby’ => ‘title’, ‘post_type’ => ‘testimonials’, ‘posts_per_page’ => get_field(‘testimonial_count’) ); else : $testimonials = get_field(‘select_testimonials’); $args = … Read more