So, as you can see from the screenshot I am loading the same website from the same domain on my Galaxy S2.
The website on the top is the static html file that was created during initial development and has a url of the following domain.testdomain.com/template/index.html. It works correctly on all devices when viewed on the device itself and in the Google Chrome Dev Tools Emulator.
I then moved the site from the static HTML to our CMS framework with a url of the following: domain.testdoamin.com, and it works fine on the desktop and the tablet, but the phone (any device) does not work properly.
The phone widths are being reported differently from the two sites. The static html displays a width of 320 pixels, which causes the correct media query to kick in. The CMS framework site reports a device with of 980 pixels which causes the media query to not kick in.
I am using this simple JS to find the widths:
$(document).ready(function(e) {
$(window).resize(function(e) {
$('#width').text("innerWdth: " + $(window).innerWidth() );
});
});
I do not understand why the same device reports different widths from different urls. I am loading the style sheets in the same order on both sites. Unfortunately I am not able to grant anyone direct access to the domains as they are restricted behind a firewall.
If there is more information that is needed please let me know and I will be happy to furnish as much information as I can.
I am using Foundation 5 as a framework.
Related
In the VRView web documentation there is the following statement in the known issues section;
360° images will have incorrect orientation in iOS Safari if you explicitly declare your iframe (instead of using the JavaScript API) and the code and images are hosted on different servers.
However as far as I am aware I am not using the iFrame mode of operation, but instead using the .JS method in the examples, however the video is still at 90 degrees when the phone is put into VR Mode.... I can sort of live with the image not quite in full screen mode, but not with the orientation.
Alternatively is there a way to 'self-host' the VR View package, on a Hosting platform, so that the iFrame method of calling the video works?
<iframe src="/vrview/src/embed?video=injected1.mp4&is_stereo=false"></iframe>
Doesnt work as it says Forbidden - You don't have permission to access /vrview/src/embed/ on this server.
Any help gretefully received
I'm implementing Facebook Pixel on my WordPress website. Everything works fine on the desktop. The pixel is activated is and working fine.
I installed the Facebook Pixel Helper plug in for Chrome, and it detects the pixel on my page
I test the events by opening my website on desktop browser, the page view event is detected on the dashboard. The pixel can also detect other events I set, like contact, content view, etc. All works fine.
Problem: when I open my website from mobile browser (I tried mobile Chrome, Kiwi Browser, Samsung Browser), the dashboard didn't detect the page view event, as well as other events. I tried to open from another mobile phones, same result. I tried to deactivate all my WordPress plug-in to check if one of them is conflicting, but still same result. I inspected my website from mobile browser, it has the Facebook pixel script on the header part, just like on desktop browser, so it should be working fine.
Anyone knows the solution? I don't know what causes this problem. I use Hestia theme and Elementor for my WordPress website.
Try this steps:
1 ° Mobile usually has cache (I don't think so), but try to clear the caches and try again.
2 ° If there are cache plugins please clear all caches please (I don't think so)
3 ° Some themes are available in several headers and some of them are different for mobile and desktop, check if the headers are different and insert the tag manually if necessary in each header.
4 ° To check if everything is ok, with google chrome if you press f12 you have the option to choose a device for testing. Choose an Android or IOS phone from the emulators and reload the screen to test. In cell phones can be false / positive information received sometimes.
Try these options and update your question with new information to try to help you.
I have WordPress page whose theme seems to be loading an undesirable CSS background-image. I want to try to locate the code that is responsible for loading this image but first I have to find its name. I was wondering if there is some tool that allows coders to list and identify the urls of all css-background images that a page calls.
Obviously finding background-images is trivial if all of the page's CSS is controlled only by inline code and directly linked CSS-stylesheets: a text search "find" operation for "background-image" will allow you to find all bg images. But the task becomes complicated if styling is js dependent, and in this case, it was at times.
For those of you who immediately wonder why I need would want to go this route instead of simply using development tools in Chrome or Firefox, below is a list of reasons why.
Why I want a way to automatically extract the background-image urls:
The unwanted ghost images only loads on my mobile phone, so I can't inspect the element to find the image in using my desktop development environment. This is true even if I set the developer tools to "mobile".
I don't have a development environment for my phone that will let me inspect the relevant element.
I tried downloading the exact html loaded by the mobile phone in my browser, but the css ghost image will not appear on my desktop even when use the code my phone had loaded.
The ghost image is not from a virus in my mobile phone browser, because the ghost image loads on my phone even when I used a different browser.
Any help will be greatly appreciated!
Thanks
UPDATE: I figured out the cause of the ghost image using the free trial provided by Browserstack, a mobile emulator. At allows you to view interactive content and inspect it with dev tools. I learned about it from this question: test mobile website in desktop browser.
My problem turned out to be that the css-image in the theme was pointing to my local address, which different from what it should have been on my remote server. The issue turned out not to be a desktop vs. mobile problem, but rather local vs. remote. The emulator reproduced my issue, and it allowed me to inspect and find the problematic code. Still I would love to know if there is a such a css-crawling tool, so I will leave this question open.
I have a drupal site with the media module installed. When I click 'select media' and try to upload an image on a mobile device I get a blank box instead of the popup box with the upload option. I've checked the console and there are no error. How do I debug this and make it work on mobile.
You can add images to Drupal, but mobile devices don't allow you to upload any photos to image fields. (Android allows it as I remember.)
HTML5 allows this, but sadly that's mostly a no go with Drupal 7 at the moment. However, it turns out the fix is nice and easy via the HTML Media Capture method. Add the following snippet of jQuery, so it runs when pages load:
$('div.image-widget-data input[type="file"]').each(function(idx, item) {
$(item).attr('accept', 'image/*;capture=camera');
});
That will look for items inside image widgets and add the accept attribute This then tells mobile devices they can upload image data and are allowed to grab that from their on-board camera.
To make that a spot simpler on Drupal, you can grab the Image Mobile Camera module from its sandbox on Drupal.org.
Now hit your blog via your tablet or phone (using a browser that supports this - Chrome is fine) and try it out.
Hope that helps
So I’m drinking the Kool Aid and trying to create a responsive ASP.NET website using VS 2013 and Bootstrap, and I’ve hit a problem I don’t understand and don’t know how to deal with.
The site seems to be coming along pretty well, and all the Bootstrap stuff appears to be working properly when I view the site in a web browser and in the various Windows Phone emulators. The problem is that the site does not behave properly when I view it on my actual, physical, Windows Phone.
My phone is running Windows Phone 8.0, and the emulators claim to be emulating WP 8.1. I’m assuming that this would explain the difference in behavior, but I’m not sure and I don’t really know how to figure this out.
To simplify the problem, I created a blank ASP.NET Web Application in VS, and copied enough stuff from Site.Master into Site.Mobile.Master so as to create a Bootstrap navbar. I then uploaded the whole thing to Azure so as to be able to view it online.
Apparently I cannot post images up here nor can I post more than two links, so describing what's going on is a little bit of a challenge.
I’ve shared a folder on OneDrive that contains the two screen shots and Site.Master and Site.Mobile.Master from the project. I haven’t modified any other files. The folder’s address is http://1drv.ms/1lCW0TA .
In this folder, you'll see "Emulator Screen Shot.jpg" which is what the page I created looks like in the 8.1 emulator. You'll notice that the top navigation bar is pretty much what one would expect from a Bootstrap site.
You'll also see "Phone Screen Shot.jpg" which is what the same website looks like on my mobile device. Note that the top navigation is a mess.
If you want to look at it on your own device, the address is http://mobilemenus.azurewebsites.net.
So, my questions are,
1) What’s going on here? Is the browser in WP 8.0 not capable of rendering this stuff properly? Or am I doing something incorrectly that’s causing it not to work?
2) More importantly, how am I supposed to fix this? Given how simple this example is, I’m having a tough time believing I’m the only person in the world to be having this problem, but I can’t find any discussions of this issue online.
The website works fine on my Kindle. Unfortunately I don’t have an iPhone to test on, so I don’t know what it looks like on an actual iPhone.
I was hoping to finish this and get it deployed in the next couple of weeks, and it would sure be nice if it worked properly on existing Windows Phones.
Thanks in advance for any help.
-Rob
This looks like it is working exactly as it should. You are most likely using an emulator with a small screen resolution. The default emulator uses an 480x800 screen resolution. Your device has a resolution width of 768x1280 (value obtained from your screenshot. You can change bootstraps logic to not have a min/max width of 767/768 with some css. I've gone as far as just changing my local copy of bootstrap.css by doing a find/replace. You can also create a new css file that overrides certain values. You'll want to load that css file after the main bootstrap css.
A handy way to test screen resolution is with Chrome. Hit F12 to open the debugging tools and as you change the size of chrome, it will display the resolution of the page in the top right corner.
This is a well-known bug on Internet Explorer 10 for WIndows Phone 8.
Since you're using ASP.NET you have the chance to fix it server side once on your master page.
var style = new StringBuilder(
"<style type=\"text/css\">" +
"#-webkit-viewport{width:device-width}" +
"#-moz-viewport{width:device-width}" +
"#-ms-viewport{width:device-width}" +
"#-o-viewport{width:device-width}" +
"#viewport{width:device-width}");
var browserCapabilities = Page.Request.Browser;
if (String.Compare(browserCapabilities.Browser, "IEMobile", StringComparison.OrdinalIgnoreCase) == 0 &&
browserCapabilities.MajorVersion == 10 && browserCapabilities.MinorVersionString == "0")
style.Append("#-ms-viewport{width:auto!important}");
style.Append("</style>");
var placeholder = new Literal {Text = style.ToString()};
Page.Header.Controls.Add(placeholder)
Here's the whole article to fix the windows phone bug.