JS file not loading [closed]

You forgot to set dependencies at third parameter put it with array() or array(‘jquery’) if you want to depend on jQuery wp_register_script( ‘navbar-scroll’, ‘http://www.classyclutter.net/wp-content/themes/foodiepro/assets/js/scrolling-navbar.js’, array(), ‘1.0.0’, true);

Can’t access data from database using AJAX

Pass data as an argument in done(function(data) funtion. <script> jQuery.ajax({ type:”POST”, url: my_ajax_object.ajax_url, data: { ‘action’: ‘call_my_ajax_handler’ } }).done(function(data) { console.log(data); });

Load css classes after using ajax calls

Styles won’t be affected if you use different selectors. Create a custom stylesheet, and enqueue it immediatelly. When the page is ready just apply the styles to the mentioned responsive div, or create some logic behind it. So for example if you have <div class=”custom-sidebar”>Some content</div> Enqueue custom style within functions.php wp_enqueue_style( ‘some-custom-styles’, get_stylesheet_uri() . … Read more

why my “recepie” category is not taken into account in my request

This explicit code is missing from your example and you should verify that you have at least these statements (plus any additional post tag functions, or analogous calls to “the_content()”) included exactly as this in your original code: while ( $the_query->have_posts() ) : $the_query->the_post(); the_content(); endwhile; This should roughly be at the location noted by … Read more

JQuery WordPress gallery [closed]

Of course it’s possible. Galleria is a jQuery plugin that is similar, but better (fancy slide transition effects and more). You could include it yourself (see their documentation) or if you prefer WordPress plugins look at Photo Gallery which seems like it’s based on galleria (haven’t tried it). Another really popular gallery plugin is the … Read more