Site icon Hip-Hop Website Design and Development

How to Display Download Buttons for Respective Operating Systems in Divi

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.

.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !important; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:before { border-top-color: #ffffff !important; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:before, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:before { border-top-color: transparent !important; border-left-color: #ffffff !important; }
@media only screen and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:before { border-top-color: #ffffff !important; border-left-color: transparent !important; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !important; border-left-color: transparent !important; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:before { background: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !important } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 strong { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; }.et_bloom .et_bloom_optin_1 .et_bloom_form_container p, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p strong, .et_bloom .et_bloom_optin_1 .et_bloom_form_container form input, .et_bloom .et_bloom_optin_1 .et_bloom_form_container form button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !important;}

Download For Free

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:

  1. If you haven’t yet, install and activate the Divi Theme.
  2. Create a new page in WordPress and use the Divi Builder to edit the page on the front end (visual builder).
  3. Choose the option “Build From Scratch”.

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.

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:

  1. Open the developer tools and click the three-dot icon at the top right of the window
  2. Select Show Console Drawer from the dropdown ( or you can simply press esc to bring up the console drawer)
  3. In the console drawer, click the three-dot menu at the top left of the drawer.
  4. Add the Network Conditions tab from the dropdown list.
  5. Under Network Conditions, deselect the option “Use Default Browser” for User agent.
  6. Then select a Custom Browser/OS from the list.

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 Windows 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!

.inline-code{padding: 0px 4px; color: crimson; font-family: Monaco,consolas,bitstream vera sans mono,courier new,Courier,monospace!important} video.with-border {border-radius: 8px;box-shadow: 0 8px 60px 0 rgba(103,151,255,.11), 0 12px 90px 0 rgba(103,151,255,.11);display:block;margin: 0 auto;}

The post How to Display Download Buttons for Respective Operating Systems in Divi appeared first on Elegant Themes Blog.