Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Testing local sites on mobile

Featured Replies

What's the best way to test responsive websites that have been developed locally, with out simply changing the browsers size with the mouse?

In the newest version of firefox you have a build in way to test different resolutions.

 

Tools -> Web Developer -> Responsive Design View

 

Léon :)

If your mobile is connected to the same wireless network as the computer, you can access the site by knowing the ip of your computer and replacing localhost by it in the url (http://localhost/testsite -> http://192.168.1.44/testsite)

 

To find the ip do ipconfig on the command prompt on windows or ifconfig on the terminal on linux or mac.

Edited by ocorreiododiogo

  • Author

In the newest version of firefox you have a build in way to test different resolutions.

 

Tools -> Web Developer -> Responsive Design View

 

Léon :)

 

 

I really like the features firefox has got now, its changed a lot since i last used it - thanks for brining it to my attention :)

 

 

If your mobile is connected to the same wireless network as the computer, you can access the site by knowing the ip of your computer and replacing localhost by it in the url (http://localhost/testsite -> http://192.168.1.44/testsite)

 

To find the ip do ipconfig on the command prompt on windows or ifconfig on the terminal on linux or mac.

 

This method works very well except the css does not load - Is there something i need to do to make it work?

  • Author

Strange... just tried this and the css loads perfectly. Where is the css file located?

 

It is the default location for a Wordpress installation: wordpress install folder/wp-content/themes/themefolder/style.css

 

The main page loads (with out CSS), but also any links to posts etc do not work either.

Oh, you must be using complete urls for the links (http://site.com/about/) instead of relative (/about/), same goes for the css file. Is this how it works with Wordpress?

 

You can temporarily change the css url to an absolute link, but with the ip instead of localhost just for the test on the mobile.

Simple answer. Don't build it locally. Get a working demo up and online, be it using a free web host or as a sub folder on your own site. This way you can preview it on your Smart Phone (assuming you own an iPhone/Android?)

 

Sorry a lot of assumptions there, but just my two cents worth....

Edited by Silverbolt

Simple answer. Don't build it locally. Get a working demo up and online, be it using a free web host or as a sub folder on your own site. This way you can preview it on your Smart Phone (assuming you own an iPhone/Android?)

 

Sorry a lot of assumptions there, but just my two cents worth....

 

You can access a locally developed site on a mobile without putting it online.

  • Author

Thanks for the help guys. I cant believe i didn't think of using a free host just for testing before lol.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.