What is the php code to show only if it is a desktop
What is the php code to show only if it is a desktop
you could try a plugin like this one
Thank you but this is a theme switcher.
I am looking for a filter content, something like this:
code - if it is a descktop -code
show this content.....<img ......
code -else -code
show this content....<strong.....
end if
but it comes with a function to let you detect mobile devices
MobileDTS::is('mobile')
Thank you but i need detect desktop, there is a good plugin to filter content "ACME if mobile" it is what i looking for.
But the problem it is that the shortcode of this plugin don't work in text-widget, only in pages and post, i have tried with other plugin like "shortcode to widget" but still don't work.
Then i whant to put the php code to detect desktop in the text-widget directly.
But i have solved with the php code of the plugin directly in the text-widget.
Thank you
shall i mark this as resolved?
sorry, yes i think it is resolved
You must log in to post.