Skip Navigation

[Resolved] Different display depending on mobile or desktop when no post filter in View

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by kelvinL-2 3 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2263349

Dear Sir/Madam,

I want to have different display depending on mobile or desktop when no post filter in View, below please find the code I do but not work

[wpv-no-items-found]
      [wpv-conditional if="( wp_is_mobile() eq '1' )"]
      [/wpv-conditional]
      [wpv-conditional if="( wp_is_mobile() eq '0' )"]
		<img width="1024" height="128" src="/old-data/blank_ad.png"/>
      [/wpv-conditional]
[/wpv-no-items-found]

Please help.

#2263443

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Have you added the function name wp_is_mobile at:
=> Toolset => Settings => Front-end content => Functions inside conditional evaluations

Can you please register the function there and check if that help you to resolve your issue.

#2263631

My issue is resolved now. Thank you!