ReferenceError: jQuery is not defined in wordpress website

admin

Administrator
Staff member
<blockquote>
i am getting this error while loading the wordpress webiste. it stop the working of the revolution slider.i am using the total_child theme of wordpress. any help.?
</blockquote>

Code:
jQuery(document).ready(function() {
            // CUSTOM AJAX CONTENT LOADING FUNCTION
            var ajaxRevslider = function(obj) {

                // obj.type : Post Type
                // obj.id : ID of Content to Load
                // obj.aspectratio : The Aspect Ratio of the Container / Media
                // obj.selector : The Container Selector where the Content of Ajax will be injected. It is done via the Essential Grid on Return of Content

                var content = "";

                data = {};

                data.action = 'revslider_ajax_call_front';
                data.client_action = 'get_slider_html';
                data.token = 'ef60422c21';
                data.type = obj.type;
                data.id = obj.id;
                data.aspectratio = obj.aspectratio;

                // SYNC AJAX REQUEST
                jQuery.ajax({
                    type:"post",
                    url:"http://christiansteven.com/en/wp-admin/admin-ajax.php",
                    dataType: 'json',
                    data:data,
                    async:false,
                    success: function(ret, textStatus, XMLHttpRequest) {
                        if(ret.success == true)
                            content = ret.data;                             
                    },
                    error: function(e) {
                        console.log(e);
                    }
                });

                 // FIRST RETURN THE CONTENT WHEN IT IS LOADED !!
                 return content;                         
            };