Title: Javascript requests causing theme to change
Last modified: August 31, 2016

---

# Javascript requests causing theme to change

 *  Resolved [Juan Gray](https://wordpress.org/support/users/gramcracker64/)
 * (@gramcracker64)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-requests-causing-theme-to-change/)
 * We’ve been working on this for several days now.
 * The jonradio plugin can only filter precise URLs.
 * Partial URLs, wildcards, do not work. No iteration of any of the below URLS are
   ever accepted or can be filtered. Neither is the precise URL.
 * [http://mydomain.com/#!portfolio-item/post-2](http://mydomain.com/#!portfolio-item/post-2)
   
   [http://mydomain.com/#!portfolio-item/](http://mydomain.com/#!portfolio-item/)
 * We have tried about 50 different permutations of the above URL in every conceivable
   setting.
 * How do I tell the plugin to do nothing if the URL like above is clicked? Because
   right now, it reverts back to the wrong theme.
 * [https://wordpress.org/plugins/jonradio-multiple-themes/](https://wordpress.org/plugins/jonradio-multiple-themes/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-requests-causing-theme-to-change/#post-7050631)
 * I’m the original author of this plugin, and I’m no longer in a position to provide
   Support (David has adopted this plugin and supports it now), but I did want to
   comment on one thing in the hopes that it might help you immediately.
 * The URLs you show in your post above all include the “#”. The PHP functions used
   by the plugin would see the “#” as the beginning of the name of a section of 
   a page.
 * Whether right or wrong, I know that I never tested any situation like this.
 *  Plugin Contributor [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-requests-causing-theme-to-change/#post-7050860)
 * I agree with Jon. The standard for URL formatting is that the # symbol looks 
   for an anchor tag on the page. So in the case of foo.com/page#anchor everything
   after the # is the anchor tag. If you have nothing before the #, it will look
   on the home/default page of the site.
 * –David
 * P.S. Marking as resolved because odd URL formatting that the plugin can’t resolve.
 *  Thread Starter [Juan Gray](https://wordpress.org/support/users/gramcracker64/)
 * (@gramcracker64)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/javascript-requests-causing-theme-to-change/#post-7050882)
 * Thanks, this is what we assumed. Although we came close to getting it to work
   with some hooks, but in the end, we put the secondary theme in a different installation
   and linked it to the main site.
 * Some diagnostic messages in place of missing divs and blank pages might be good,
   but as a WP dev, server admin and sometimes plugin-developer, I know of course
   the origins of the errors are not so easy.
 *  Plugin Contributor [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-requests-causing-theme-to-change/#post-7050968)
 * As I change code, I’ll be adding more diagnostics. So far, I’ve been avoiding
   too much code changing because what Jon built is virtually indistinguishable 
   from magic.
 * –David

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Javascript requests causing theme to change’ is closed to new replies.

 * ![](https://ps.w.org/jonradio-multiple-themes/assets/icon-256x256.png?rev=1134086)
 * [Multiple Themes](https://wordpress.org/plugins/jonradio-multiple-themes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jonradio-multiple-themes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jonradio-multiple-themes/)
 * [Active Topics](https://wordpress.org/support/plugin/jonradio-multiple-themes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jonradio-multiple-themes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jonradio-multiple-themes/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 4 replies
 * 3 participants
 * Last reply from: [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-requests-causing-theme-to-change/#post-7050968)
 * Status: resolved