Speed issues because of CSS & JavaScript

There are so many errors, image are not optimized and some links are returning 404. eg: http://julietloves.co.in/wp-content/uploads/2016/08/55-1.png http://julietloves.co.in/wp-content/uploads/2016/08/TAG-168×42.png I will recommend you to optimize all images using optimizilla.com and re-upload it. After that install “W3 Total Cache” it will help fix server response time issue. howlthemes.com/wordpress-caching-w3-total-cache-setup-guide/ Still there are lots of issue best solution is … Read more

How to change number field to text field using JS

The original code is using prevAll on the minus button, but the target input appears later in the DOM. PrevAll worked fine for the plus button though, since the targeted input comes before the plus button. The modified code below is tested and working: jQuery(document).ready(function ($) { // Containing selector var parentSelector = $(‘.quantity’); // … Read more

jQuery not working for media uploader

Even if this “question” is horrible asked here, i think his problem is that “file_frame.on( ‘select’” seems not to work anymore, at least that’s the issue I’m recently experiencing. This seems to have something todo with an WordPress update, because this code worked in the past.

The placeholder text doesnt disappear

I believe this script will work for you: $(‘[placeholder]’).each(function(){ var $this = $(this); $this.data(‘placeholder’, $this.attr(‘placeholder’)) .focus(function(){$this.removeAttr(‘placeholder’);}) .blur(function(){$this.attr(‘placeholder’, $this.data(‘placeholder’));}); });

Add a jQuery snippet for sepcific user role

You should be able to use the admin_enqueue_scripts hook to load your snippet on the edit page as seen in this example from the codex function my_enqueue($hook) { if ( ‘edit.php’ != $hook ) { return; } wp_enqueue_script( ‘my_custom_script’, get_template_directory_uri() . ‘/myscript.js’ ); } add_action( ‘admin_enqueue_scripts’, ‘my_enqueue’ );