• Resolved zkarj

    (@zkarj)


    The front page of my site has links to custom taxonomy pages I hacked together many years ago. If you click on the second image it should take you to the page that lists items in the “carpets” collection at the linked URL. This works on desktop and iPad sized screens but not on iPhone screens and I am struggling to figure out how this is so.

    I’ve tried loading up the home page in Safari in responsive design mode and set it to various screen sizes to prove this. Note that this does not involved the user agent string changing.

    I don’t see how my responsive CSS could cause a 301 (impossible?), nor how my PHP is causing anything based on screen size (because nothing checks it, that I can find).

    Can anyone suggest how this could be happening, or where I could look for the problem. I disabled all plugins to no avail which seems to suggest the theme (a custom child of Twenty Twelve) which has its own PHP for various bits of the custom taxonomy.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you deactivate all plugins? If you refresh while in Safari’s responsive design mode then the page will be loaded with the mobile user agent, and you’ll also see that a mobile theme is loaded. This appears to be Jetpack’s mobile theme.

    The issue might be that the Collections taxonomy is being registered by your theme, so when you visit on mobile and the Jetpack mobile theme is activated, the taxonomy no longer exists, causing the links to break, which is redirecting you to the homepage. I’m not 100% certain about this, but I’m sure somebody at https://www.ads-software.com/support/plugin/jetpack/ could confirm.

    Since your site’s responsive, you might as well disable the mobile theme. To do this, go to Jetpack -> Settings -> Writing tab and scroll down to the Theme Enhancements and the “Enable the Jetpack Mobile theme” option and turn that off.

    Thread Starter zkarj

    (@zkarj)

    Thank you!! That was it!

    You are right, I didn’t disable ALL of the plugins — I thought I could trust Jetpack (and I can) but of course that’s not the full story of deactivating EVERYTHING to see if there’s a clash.

    It never occurred to me that the blue bar at the top was not part of my theming. I guess I’m so used to WordPress blue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why does screen size cause 301 versus 200 response?’ is closed to new replies.