Title: [Plugin: Read More Right Here] Not compatible with JavaScript Ads
Last modified: August 19, 2016

---

# [Plugin: Read More Right Here] Not compatible with JavaScript Ads

 *  [svenzn](https://wordpress.org/support/users/svenzn/)
 * (@svenzn)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-read-more-right-here-not-compatible-with-javascript-ads/)
 * The plugin is great! But I have two problems, most of my ads are Javascript, 
   and when “Read More” is clicked, instead of expanding the post, it loads a new
   page with only the ad and nothing else.
 * Second problem is also related to JavaScript. I use Shadowbox JS to display images
   and youtube-videos (it expands a box on top of the the other content on the site
   in which it displays the image/video). When a post has been expanded with “Read
   More Right Here” however, the functionality of it is disabled, and the image/
   video links open in a new page instead.
 * **So I guess my question really is, how do I make this plugin work along with
   javascript inside posts?**
 * This is the site btw, [http://violentcinema.se](http://violentcinema.se)
 * [http://wordpress.org/extend/plugins/read-more-right-here/](http://wordpress.org/extend/plugins/read-more-right-here/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Wooliet](https://wordpress.org/support/users/wooliet/)
 * (@wooliet)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-read-more-right-here-not-compatible-with-javascript-ads/#post-1953540)
 * There really is no simple solution right now. The explanation is that most plugins
   wait until the web page is loaded (to ensure all required elements are there)
   and then perform some action on those elements.
 * When RMRH pulls in new content, it’s too late. The other plugins don’t know its
   there and nothing will happen.
 * What has to happen is that the javascript of the other plugins (or ads or whatever)
   needs to start monitoring for the creation of new elements that match the type
   on which they act. In other words, instead of
 * > Wait for the page to load, find all images, and do this to them
 * the code needs to say
 * > Every time a new image element is created, do this to it
 * jQuery has [`live`](http://api.jquery.com/live/) and [`delegate`](http://api.jquery.com/delegate)
   to accomplish this.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Read More Right Here] Not compatible with JavaScript Ads’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/read-more-right-here.svg)
 * [Read More Right Here](https://wordpress.org/plugins/read-more-right-here/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/read-more-right-here/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/read-more-right-here/)
 * [Active Topics](https://wordpress.org/support/plugin/read-more-right-here/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/read-more-right-here/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/read-more-right-here/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Wooliet](https://wordpress.org/support/users/wooliet/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-read-more-right-here-not-compatible-with-javascript-ads/#post-1953540)
 * Status: not resolved