Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Blog/How to Create a Download in Play Store Button (only Visible to Android Users)

How to Create a Download in Play Store Button (only Visible to Android Users)

This post will teach you how to create a Play Store download button that only appears for Android users, and how to implement simple device detection in your Webflow site without any complex coding.

Ovidiu·Contributor
|
March 14, 2025·4 min read

How to create a download in Play Store button (only visible to Android users)

Other use-cases using Memberscript #120:

  • How to automatically hide/show elements to mobile visitors
  • How to automatically hide/show elements to desktop visitors
  • How to automatically hide/show elements to users on a touch screen device
  • How to automatically hide/show elements to users with a device in portrait mode
  • How to automatically hide/show elements to iOS visitors
  • How to automatically hide/show elements to android visitors
  • How to automatically hide/show elements to macOS visitors
  • How to create a download in App Store button (only visible to iOS users)
  • How to create a download in Play Store button (only visible to android users)
  • How to create a download for macOS button (only visible to Mac users)
  • How to create a download for Windows button (only visible to Windows users)
  • How to create a download for Linux button (only visible to Linux users
  • How to create a download Chrome Extension button (only visible to Chrome users)
  • How to automatically hide/show elements to Windows visitors
  • How to automatically hide/show elements to Linux visitors
  • How to automatically hide/show elements to visitors using Chrome
  • How to automatically hide/show elements to visitors using Edge
  • How to automatically hide/show elements to visitors using Safari
  • How to automatically hide/show elements to visitors using Firefox
  • How to automatically hide/show elements to visitors using Opera
  • How to tell your visitors to stop using Internet Explorer

Memberscripts needed:

https://www.memberstack.com/scripts/device-os-browser-visibility

Tutorial:

Cloneable:

__wf_reserved_inherit

Why/Use Cases

- Change the visibility of content on your site based on your visitors’ device type, OS, screen orientation, browser, and more.

Creating a download in Play Store button for Android visitors on a Webflow site

Not all elements on your site need may be relevant to every visitor, so you can adjust visibility settings accordingly, using parameters such as browser, OS, or device type.

For example, iOS users may see an App Store button, while Android users see a Play Store button. On desktops, you may prefer to hide both and instead display an App Store link for macOS users and a Microsoft Store link for Windows users.

This guide will help you create a download in Play Store button that is only visible to Android users.

To create a download in Play Store button only for Android users, we’re going to use MemberScript #120 – Show/Hide Element Based On Device, OS, or Browser. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting it up

Once you’ve created the download button, you’ll need to use the ms-code-device-show attribute to only display it to Android visitors. All you have to do is add the attribute to the button and use “android” as the value.

The attribute ms-code-device-show=”android” will display the button on Android devices only.

If you’re creating an element that you want to hide only from Android users, just add an exclamation point before the value:

· ms-code-device-show”!iandroid” – this hides it on Android devices and shows it on any other devices

You can also combine multiple conditions by using & for “and” and | (vertical line, not capital “i”) for “or,” like so:

· ms-code-device-show=”ios&android” – this only shows it on iOS and Android devices

· ms-code-device-show=”ios|macos” – this only shows on either iOS or macOS devices

For a full list of available values, see our cloneable page.

Making it work

Now that you’ve got everything set up in Webflow, all you need to do is add the MemberScript #120 custom code to your page (or sitewide), before the closing body tag.

Conclusion

That’s everything, you can now go ahead and test the button on your live site.

If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.

Our demo can help you show or hide elements on your Webflow site based on visitors’ devices, OSes, browsers, and more.

Take me to Cloneable!‍

Written by

Ovidiu

Contributor

Contents

  • Other use-cases using Memberscript #120:
  • Memberscripts needed:
  • Tutorial:
  • Cloneable:
  • Why/Use Cases
  • Creating a download in Play Store button for Android visitors on a Webflow site
  • Setting it up
  • Making it work
  • Conclusion
  • Take me to Cloneable!‍

Share

Explore Memberstack

  • All Features
  • Customer Showcase
  • Templates
  • Find Experts
  • Pricing
  • Help Center

Product

  • Full Feature List
  • User Accounts
  • Gated Content
  • Secure Payments
  • API & Integrations
  • Data Tables
  • Memberstack & Webflow
  • Memberstack & Claude Code
  • Memberstack & WordPress
  • Create a new account
  • 2.0 Log in
  • 1.0 Log in
  • Pricing

Learn about Memberstack

  • Showcase
  • Testimonials
  • Why Memberstack
  • Memberstack vs Outseta
  • Memberstack vs Memberspace
  • Memberstack vs Webflow Memberships

Company

  • About
  • Careers
  • Changelog
  • Partnerships(email)
  • Contact Us(email)
  • X
  • LinkedIn
  • "Do Not Sell My Data" Promise

Resources

  • Vibe Coding
  • Templates
  • Components
  • MemberScripts
  • Data Attributes
  • Find Experts
  • Hiring Guide
  • Webflow Slack Community
  • WordPress Slack Community
  • Support Forum
  • Help Center
  • Blog
  • llms.txt (for AI)
  • llms-full.txt (for AI)
AICPA
SOC

SOC 2 TYPE 1

CERTIFIED

GDPR

COMPLIANT

CCPA

COMPLIANT

Privacy PolicyTerms of ServiceCookie PolicySecurity Policy

© Memberstack Inc. 2018 - 2025. All rights reserved.

Memberstack - The no-code membership platform for any website | Product Hunt