• I want to disable/hide blocks with links (and ultimately also the main menu) when a URL query is set in the link address. My first test works by removing the first block on the page with a link – when done on a pc. On a mobile/tablet it does not work. Nothing is hidden.
    I want to do the hiding, when users access the page from a QR-code (with the query in the link) on a wine label. In this case only the ingrediens list must be available. But no access to other parts of the website encuraging the user to buy (webshops or addresses to physical shops etc.). So from the QR-code all menus etc must be hidden. But QR-codes are normally operated from mobiles… ?? So it should work here as well.
    I am using WordPress 6.4.3 with Kadence Blocks 3.2.25
    I hope you can tell me, what I am doing wrong – or missing to do. ??

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tubajohs

    (@tubajohs)

    I can add, that if I control the visibility by using the Date&Time, it works both on the pc and also on my phone. But the query-string seems not to be ‘active’ on the mobile.

    I tried to put 2 buttons on the page, each with a link to the same page only with different parameters added. This works nicely on the pc, but no effect what so ever on my mobile. (Android, if this matters). The same negative result on an Ipad.

    Plugin Author Nick Diego

    (@ndiego)

    Hi @tubajohs,

    Thanks for reaching out. That is strange, the Query String control should work in all browsers that support strings.

    On the Query String control documentation page, there is a button at the bottom of the How to Configure section. Clicking on this button refreshes the page with a query string added to the URL, and you should then see a little notice. I just tested this on my mobile devices, and everything is working as expected. Can you give it a try?

    If it does not work, then there is a larger browser issue on the devices you are using. If it does work, then the browsers might not like the parameters you are using. Either way, it will help us diagnose.

    Best,
    Nick

    Thread Starter tubajohs

    (@tubajohs)

    Hi Nick,

    Thanks for your response. I think, that my problem is, that when I generate a QR code – with or without a query parameter, – I cannot trust the camera scanner to always pass the parameter correctly when the link is opened.
    It sometimes work, and sometimes not. And I have not found the logic yet.
    Maybe some cache memory?

    But assuming it works, – I have realized, that it may not be possible to do, what I wanted to do: use the condition to hide also the main menu on the individual page. Can you confirm this?
    Because then I have to look for other methods to show the contents-only when coming from a QR – and show the full page when using direct links.
    I appreciate any ideas! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Query string works on pc, but does not work on mobile/tablet’ is closed to new replies.