I need to hide an image if you are accessing with a mobile.

Hello, I know this is possible in C#

Case:

I have a Website in WordPress, where there is a QRCode to scan, allowing you to download a .pdf.

Problem:

If I’m accessing the website with a mobile, I should not see the QRCode.

So I need something like this,

IF

accessing via mobile

THEN

hide_image QRCode.PNG

ELSE

show_image.

Now I know there are some scripts allowing you to detect what device are you using to access a Website, but I’m not an expert in PHP and WordPress.

Could someone tell me if is possible to do?

Thanks in advice.



Source link