-
Notifications
You must be signed in to change notification settings - Fork 867
BrowserSync not loading styles on mobile and ipad #572
Comments
I don't think it's a browsersync or foundationpress related problem but a problem with way Wordpress handle links in the header of your page... You should use something liek Xip.io or a proxy to be able tocheck your website locally on other computer/tablet. Also there is a wordpress plugin that will rewrite all your links with relative path - relative-url |
Hi dantahoua, Thanks for your reply! Since I'm making use of mamp, I also tried http://paterson-jackson.192.168.178.17.xip.io:8888/ However, the result is the same. I just can't get the styles injected even tho the connection is there. Unfortunately I'm not much of a Grunt specialist. |
Yes just try relative-url... Very useful! :) https://fr.wordpress.org/plugins/relative-url/ |
Thank you very much. Going to try it out and let you know if it solved the problem. |
Didn't work either :-/ |
What address are you visiting on your mobile device? |
The external http://192.168.178.17:3000/name-project |
@RaMonkey did some asterisks get stripped from your original post? It should be:
Also, does |
Also, this sounds like it could be relative to the issue: We might need to ditch |
Yeah I read that post Shakyshane wrote about browsersync and grunt. |
@RaMonkey did you try out the new build system with Gulp to see if Browsersync is working now? |
Hi @colin-marshall, No, I wasn't aware it was already available 👍 As soon as I have some time for testing, I will definitely do so! |
Hi @colin-marshall , BrowserSync working like a charm in Gulp config :-). Have a great weekend all. |
👍 |
Added my localhost in the Gruntfile.js @ line 200 as instructed and the browser opens and appears normal with styles being injected (font awesome icons not showing tho).
But when viewing the site on iPhone or iPad, I only see the html without styling.
browserSync: { dev: { bsFiles: { src : [ 'assets/stylesheets/_.css', '__/_.php', 'assets/javascript/*_/_.js' ] }, options: { watchTask: true, // fill in proxy address of local WP server proxy: "localhost:8888/paterson-jackson/" } } } });
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: