Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

[Solved] JQuery interaction question w/Vanilla embedded in wordpress

peregrineperegrine ☯ hasta luego :)In-Flight MVP
edited April 2012 in Vanilla 2.0 Help

I'm looking for a Jquery solution or possibly a rewrite url rule.

It seems like some JQuery and javascript events won't work in vanilla when it is embedded in wordpress.

e.g. Just as an example. this code if executed in console will work perfectly fine. If you click on something it will scroll to the top of the page in in non-embedded vanilla.

jQuery(document).ready(function($) {
    window.scrollTo(0, 0);
   return false;

yet in embedded vanilla it will not do anything. Is there any function in Jquery that will allow scrolling to the top of the iframe ala (typical vanilla embedded in wordpress). using iframe instead of window will not solve problem, nor will local links.

- It it requires a rewrite rule in urls.

what would be the correct syntax in a rule that excludes rewrites of urls
that end in 



Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. click here for Peregrine | click here for FAQ


Sign In or Register to comment.