WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] show if it is a desktop (not touch device) (7 posts)

  1. angutir
    Member
    Posted 1 year ago #

    What is the php code to show only if it is a desktop

    http://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    you could try a plugin like this one

    http://wordpress.org/extend/plugins/mobile-detector/

  3. angutir
    Member
    Posted 1 year ago #

    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

  4. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    but it comes with a function to let you detect mobile devices

    MobileDTS::is('mobile')

  5. angutir
    Member
    Posted 1 year ago #

    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

  6. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    shall i mark this as resolved?

  7. angutir
    Member
    Posted 1 year ago #

    sorry, yes i think it is resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags