Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ken Dirschl

    (@badfun)

    Hi Clayton,
    This is an interesting suggestion. I’ll have to think about how it might be best to implement it.
    thanks,
    Ken

    Plugin Author Ken Dirschl

    (@badfun)

    Hi Clayton,
    I thought about your suggestion and realised that it really would make no sense to implement this into the plugin. You can already achieve what you want using native features in WordPress.

    What you can do is create a mobile-only menu that does not display a list of attorneys in the drop down. You do not have to hook this menu up to the plugin since you will not be populating it with new custom post types. Then, using media queries, display that menu on mobile only, and hide the main menu.

    You could also use ‘wp_is_mobile’ and load the menus conditionally depending on the user-agent. But bear in mind that the function is somewhat broad and will consider tablets as mobile devices. This may not be what you want. However, with such a lot of content in the drop down it may be perfect for your application.

    Hope this helps.
    Yours,
    Ken Dirschl

    Plugin Author Ken Dirschl

    (@badfun)

    Hope you got it figured out Clayton.

    Thread Starter Clayton Collie

    (@claytoncollie)

    Thanks for the response Ken. You’ve got me on right track. Again, thanks for the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable in Mobile’ is closed to new replies.