JQuery Login Dropdown not functioning in theme

its working now:- jQuery(function() { var $button = jQuery(‘#loginButton’); var $box = jQuery(‘#site-crhead’); var $form = jQuery(‘#loginForm’); $button.live(‘click’,function(login) { console.log($box); $box.toggle(); $button.toggleClass(‘active’); }); $form.live(‘click’,function() { return false; }); jQuery(this).live(‘click’,function(login) { if(!(jQuery(login.target).parent(‘#loginButton’).length > 0)) { $button.removeClass(‘active’); $box.hide(); } }); }); Just update your code according to you, even your mouseup function was not working, according to … Read more

Display images from JS?

You don’t specify how precisely your JS is output. If you are doing this inline from PHP you could just echo required data in place. If it’s just some arbitrary script, loaded as such, then the common practice in WP is to use wp_localize_script() to pass data from PHP runtime to an enqueued script. While … Read more

Front end post delete error confirmation and success message

There are two questions here. For styling alerts/modals, that’s a generic HTML/CSS question – check out these to get you started. For the second, it depends what you’re doing after the delete – are you redirecting back to the frontend, or staying in the admin? (I will update my answer following your response). You shouldn’t … Read more

Slider from different widgets

Found a (half)solution. Slick is very helpful. I integrated this in a template. The data now is static so that need to be changed. I created a sidebar but now I need to loop through the widgets. I think I’m trying to use this Still any ideas/thoughts are more than welcome!