How to Display Download Buttons for Respective Operating Systems in Divi | Elegant Themes Blog

Clicking the correct download button for software and/or mobile apps can be confusing for users if they don’t know the right download for their operating system. One solution to this problem is to detect the user’s operating system automatically when they load a page on your website so that you can display the correct download button(s) for that operating system. This eliminates the risk of losing potential customers who may not easily find the right download for your product.

In this tutorial, we are going to show you how to design and display download buttons for respective operating systems using Divi’s built-in condition options. This will give you full control over what buttons will be displayed with each operating system.

Let’s get started!

Sneak Peek

Here is a quick look at the OS conditional download buttons we’ll build in this tutorial. Each button will be assigned a specific operating system display condition.

This will show each button on the respective operating system when loading the page.

Download the Layout for FREE

To lay your hands on the designs from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our Divi Daily email list by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

Join the Divi Newsletter and we will email you a copy of the ultimate Divi Landing Page Layout Pack, plus tons of other amazing and free Divi resources, tips and tricks. Follow along and you will be a Divi master in no time. If you are already subscribed simply type in your email address below and click download to access the layout pack.

You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

To import the section layout to your Divi Library, navigate to the Divi Library.

Click the Import button.

In the portability popup, select the import tab and choose the download file from your computer.

Then click the import button.

Once done, the section layout will be available in the Divi Builder.

Let’s get to the tutorial, shall we?

What You Need to Get Started

To get started, you will need to do the following:

After that, you will have a blank canvas to start designing in Divi.

To speed up the design process, we are going to use the Mobile App Homepage Layout from Divi’s premade Mobile App Layout Pack.

To load the premade layout to the page, open the settings menu at the bottom of the Divi Builder. Then select the load from library icon. In the Load from Library popup, find the Mobile App Layout pack and click to use the Mobile App Homepage Layout.

This will load the layout to the page. Now you are ready to go!

How to Display Download Buttons for Respective Operating Systems in Divi

Part 1: Displaying Download Button for Mac OS

For the first button, we are going to use Divi’s condition options to display the download button only on Mac OS.  To do this, open the settings for the existing button in the header of the layout and update the following button text and link URL:

Under the design tab, update the button icon and spacing as follows:

To add the operating system condition to the button, do the following:

Here is what will be displayed on Mac OS…

Part 2: Displaying Download Button for Windows OS

For the second button, we are going to display a download button for Windows OS.

First, duplicate the button just created to create a new button.

Open the settings for the new button and update the following button text and link URL:

Under the design tab, give the button a gradient background as follows:

To add the operating system condition to the button, do the following:

Here is what will be displayed on Windows…

Part 3: Displaying Download Button for iOS (iPhone, iPad, iPod)

For the third button, we are going to display a download button for iOS devices.

To create the button, duplicate the first button we created.

Open the settings for the new button and update the following button text and link URL:

Under the design tab, update the button icon to a right arrow (see screenshot).

To add the operating system condition to the button, do the following:

Here is what it will display on iOS devices…

Part 4: Displaying Download Button for Android

For the fourth button, we are going to display a download button for Android devices.

To create the button, duplicate the previous button we created.

Open the settings for the new button and update the following button text and link URL:

Under the design tab, give the button a gradient background as follows:

To add the operating system condition to the button, do the following:

Here is what it will show on Android Devices…

Part 5: Using Images or Badges for Buttons

You can also choose to use images or badges for your buttons to make things look more official. For example, you could use one of Apple’s badges to display a download button for iOS devices. If you are wanting to use an image as a button, simply add a new image to the page.

Upload the image to the module and provide the Image Link URL to redirect users to the app store or download page.

Then update the display condition to display the image button on the respective operating system.

You could show a “Download on the App Store” button image on iOS devices.

And you could show a “Get it on Google Play” button image on Android devices.display download buttons for respective operating systems in divi

Testing Results with Chrome DevTools

If you are using the Chrome browser, you can use the built-in DevTools to test the display of your page/buttons on different operating systems. It doesn’t matter what OS your computer is running. Chrome DevTools can spoof the OS for testing purposes.

To test your page on different operating systems using Chrome DevTools, follow these steps:

Once done, you can refresh the page to load that page under those network conditions.

Final Results

Here are the final results displayed on their respective operating systems.

Download Button for Mac OS

Download Button for iOS devices

Using a Divi Button

Using an Image or Badge

Download Button for Android devices

Using a Divi Button

Using an Image or Badge

Final Thoughts

Creating download buttons in Divi is extremely easy. You can use the button module or even an image module with either a link URL to download a zip file or redirect users to a download page or app store. After that, you can drastically improve the UX of your page by using Divi’s operating system condition option to display each button according to the user’s respective operating system. This will help ensure users get what they need quickly and efficiently. And don’t forget to test those buttons on different network conditions using Chrome DevTools to make sure users are seeing the right buttons.

I look forward to hearing from you in the comments.

Cheers!

This content was originally published here.