We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Insert JS on mobile | Forum

Topic location: Forum home » Support » General Questions
Arif
Arif Jul 3 '15
Hi everyone


want to ask,

How can I insert java script / css code into oxwall mobile page?

I know there is page setting on the admin panel, but its only affected the desktop version


thankz

Taissa Team
Taissa Jul 7 '15
Arif, you may add a css/js custom code for mobile version in two ways:

- via Custom text/HTML widget. Go to Admin Area > Mobile > Index/Dashboard section.
- directly in the master pages of the mobile version of the theme you currently use. Go to ow_themes/yourtheme/mobile/base.css file or mobile_general.html. You can inspect element with Firebug and change necessary classes.

After changing the code make sure you've cleared browser and site cache. To clear site's cache enable DEV_MODE. Follow the instructions: https://docs.oxwall.org/plugin-tuts:enable-debug .
Note: that you need to remember the changes you made because as you do them in the file directly, they'll be overwritten while next update of the software
Arif
Arif Jul 7 '15
Thanks its work.