How to use Readmore.js? [closed]

The problem is related to wordpress loading jquery in noconflict mode in which the $ shortcut does not work. Try to replace it with an explicit jQuery or wrapt the relevant code in a way which will decalre $ like in the following example jQuery(document).ready(function ($) { $(‘article’).readmore(); });

load ajax using admin-ajax.php

The codex says here that The wp_ajax_ hook follows the format “wp_ajax_$youraction”, where $youraction is your AJAX request’s ‘action’ property. I suppose in your js file you should go for: data: { action: ‘lateral_fluid’, // the $action to run }

Jquery window.send_to_editor function

It is just a little syntax error in your window.send_to_editor function: imgurl = $( ‘img’, html ).attr( ‘src’ ); should be imgurl = $( ‘img’, $( html ) ).attr( ‘src’ ); because your html variable is neither a valid DOM nor a jQuery Element. Additional Note: If you want to use the Thickbox on multiple … Read more

Referrer URL with jQuery or Javascript – Cache & Referrer URL Issue

I don’t have the answer build on cookie, but I think this isn’t sensitive data, you can try localStorage. jQuery(document).ready(function($){ var initreferrer = document.referrer; if(initreferrer.indexOf(‘yourdomain.com’) === -1 ) { // Check if the referer is your site or not. If not( return -1 ) set the localStorage. localStorage.setItem(“mysite_referrer”, initreferrer); } }); Then you can use … Read more