Title: JavaScript in mobile version
Last modified: August 21, 2016

---

# JavaScript in mobile version

 *  Resolved [dreadnaxt](https://wordpress.org/support/users/dreadnaxt/)
 * (@dreadnaxt)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/)
 * Hello,
 * I’ve just switched to the version 2.0 and I’m not sure how do I proceed to have
   JavaScript in my mobile version (in version 1.2.5 it was possible).
    Is it still
   possible? If not, how can I add custom changes in the appearance (more advanced
   than just changing colours)?
 * Thank you
 * [https://wordpress.org/plugins/wordpress-mobile-pack/](https://wordpress.org/plugins/wordpress-mobile-pack/)

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

 *  Anonymous User 13868920
 * (@anonymized-13868920)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975174)
 * V2.0 is enterily based on Javascript (to be more precise on Sencha Touch). Are
   you trying to include an additional script in the source?
 * For the custom changes, you can always edit the .css files of the theme (themes/
   base). However since this is a mobile web app, I would recommend against it since
   the theme structure is quite different from a normal WP theme. You won’t find
   the regular PHP code in there, all the pages and panels are generated when the
   app is loaded in a browser and the .css structure is quite complex.
 * It would help if you can tell us what kind of custom changes you want to make,
   so we can add these in the admin panel in future releases.
 *  Thread Starter [dreadnaxt](https://wordpress.org/support/users/dreadnaxt/)
 * (@dreadnaxt)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975231)
 * In fact my idea is to do both. Modify CSS and include custom JS.
    We have some
   ads in our blog and in order to better target the visitors we use JS to identify
   the related ads to show.
 * Regarding CSS, it’s mostly adding some styles to the text that is displayed on
   the page to “highlight” it.
 * I don’t know if this is something that can be done in a generic way to have it
   in the admin panel. Probably something like providing a way to apply custom styles
   to different div classes?
 *  Anonymous User 13868920
 * (@anonymized-13868920)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975288)
 * It depends on the custom JS that you want to use. Custom scripts used for tracking
   can be placed in the head section of the theme, but it’s not possible to add 
   JS in the content (that would mean Javascript code inside another Javascript 
   code). We will add support for ad networks (starting most likely with Ad Words),
   but that will also be managed from the admin panel and integrated directly in
   the app.
 * Regarding CSS, yes, it is possible to make small changes like highlighting the
   text. In theory, since it’s a web-based application, you can do with it anything
   you want, but the Sencha Touch framework is difficult to manage without any prior
   knowledge about it. If you take a look at the rendered source, you will see quite
   a lot of divs, that’s why styling each of them from the admin panel would not
   work.
 *  [ariedel](https://wordpress.org/support/users/ariedel/)
 * (@ariedel)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975439)
 * Hello,
 * Having issues with the plugin as well.
    And yes I have another plugin also using
   JavaScript
 * The plugin is Chitika plugin
    [http://wordpress.org/plugins/chitika-premium/](http://wordpress.org/plugins/chitika-premium/)
 * On my Android, the javascript from the chitika plugin gets shown.
 * Any suggestions how I can get around this?
 * Thank you
 *  [florentina.opris](https://wordpress.org/support/users/florentinaopris/)
 * (@florentinaopris)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975442)
 * [@ariedel](https://wordpress.org/support/users/ariedel/),
 * Can you please give the the url to your website so we can check the Javascript
   code that is being loaded?
 * If you would like to keep your url private you can contact me at florentina[at]
   appticles.com
 *  [florentina.opris](https://wordpress.org/support/users/florentinaopris/)
 * (@florentinaopris)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975448)
 * Problem solved with a patch that will be included in the next release.

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

The topic ‘JavaScript in mobile version’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mobile-pack_7b7875.svg)
 * [WordPress Mobile Pack - Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps](https://wordpress.org/plugins/wordpress-mobile-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mobile-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mobile-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mobile-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mobile-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mobile-pack/reviews/)

## Tags

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

 * 6 replies
 * 4 participants
 * Last reply from: [florentina.opris](https://wordpress.org/support/users/florentinaopris/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/javascript-in-mobile-version/#post-4975448)
 * Status: resolved