Jump to content


Photo
- - - - -

Disable Hooks on Mobile page

disable hooks hooks on mobile

Best Answer James B , 08 April 2013 - 11:37 PM

Or you could use css to set the button to {display:none;} on the mobile site using browser specific css. This way it will still be visible on the desktop view.

 

There's a list of the browser specific css classes here if you use our browser specific plugin from the store - http://support.pagel...r-specific-css/

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 josh_dme

josh_dme

    Member

  • Members
  • 11 posts
  • Country: Country Flag

Posted 08 April 2013 - 09:30 PM

Hi,

 

I have a hook/branding for Play Now image button on the webpage, which links to a facebook page. But I don't want this button to be shown when the user is browsing the page in mobiles and tablets. How can I achieve this?

 

here is the webpage in I talking about - www.trinketz.com

 

Thanks,



#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 April 2013 - 09:33 PM

WordPress has a function to check for mobiles 

Please Login or Register to see this Hidden Content

You could use that in your function.


  • josh_dme likes this

#3 James B

James B

    Advocate

  • Moderators
  • 4983 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 08 April 2013 - 11:37 PM   Best Answer

Or you could use css to set the button to {display:none;} on the mobile site using browser specific css. This way it will still be visible on the desktop view.

 

There's a list of the browser specific css classes here if you use our browser specific plugin from the store -

Please Login or Register to see this Hidden Content


  • josh_dme likes this

#4 josh_dme

josh_dme

    Member

  • Members
  • 11 posts
  • Country: Country Flag

Posted 09 April 2013 - 03:01 PM

It worked. I actually used Simon_P 's suggestion for the branding section and James B 's suggestion for the playnow button in the footer we have. we are going to add more css for the mobile display..

Thanks..