Product Updates + Strategy

Conditional Content: how to add elements to certain devices

Conditional Content: how to add elements to certain devices

Want to have a specific element only in Desktop, but not on Tablet or Mobile?
Maybe an ad code, or a custom html set up that's only meant for one device.

Don't worry -- we have the right element to facilitate that option for your site: the Conditional Content element.

By inserting the element you want inside of the Conditional Content element, you can create different experiences for desktop, tablet and mobile.

You can add it to any part of your layout with the + tool:

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F78923750-7278-4b61-9529-bf79571d8800%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=751&h=7c4d8ea6fc5319ce245fad0c0327a2d450d8653b92ac4ed277730086bdde1de4&size=980x&c=1085294058 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F78923750-7278-4b61-9529-bf79571d8800%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D751%26h%3D7c4d8ea6fc5319ce245fad0c0327a2d450d8653b92ac4ed277730086bdde1de4%26size%3D980x%26c%3D1085294058%22%7D" caption="" pin_description="" image-library="0" expand=1 photo_credit=""]

Once the Conditional Content element is placed, you will be able to place new elements inside of it, like a Header Code.

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F6d004329-d216-4466-9368-015a4e0c1124%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=82&h=a1323e94f183dd57dfa61d96617a534551c85d7402c490fb72f8303a821b224e&size=980x&c=1101328845 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F6d004329-d216-4466-9368-015a4e0c1124%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D82%26h%3Da1323e94f183dd57dfa61d96617a534551c85d7402c490fb72f8303a821b224e%26size%3D980x%26c%3D1101328845%22%7D" caption="" pin_description="" image-library="0" expand=1 photo_credit=""]

In the dropdown, you'll be able to choose if you want the Conditional Content to be placed in Desktop, Tablet, Mobile:

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F89497b36-a993-4d8a-a58e-278a1e6b74f3%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=1019&h=f3c3004f2c492e12c4e4dfc7f44138ffb43b0bdc267389b938fd80a417052946&size=980x&c=1514042218 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F89497b36-a993-4d8a-a58e-278a1e6b74f3%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D1019%26h%3Df3c3004f2c492e12c4e4dfc7f44138ffb43b0bdc267389b938fd80a417052946%26size%3D980x%26c%3D1514042218%22%7D" caption="" pin_description="" image-library="0" expand=1 photo_credit=""]

If you choose Tablet and you're in Desktop view, or Mobile and you're in Tablet view and so forth, don't worry, the element hasn't disappeared, it's only visible in the viewport where it will be displayed.

Bear in mind that if you want an element to display on Desktop and on Tablet for example, you'll have to create two different Conditional Content elements with the same 'Lead Media' element (for example) inside of it.

On Desktop:

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F58ed1544-4d47-4f81-8e0c-aae57d046bc0%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=229&h=fb460ff811730e361fe2d974f294086bd405751a6556e481998bac3cfc8107e8&size=980x&c=4210160278 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F58ed1544-4d47-4f81-8e0c-aae57d046bc0%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D229%26h%3Dfb460ff811730e361fe2d974f294086bd405751a6556e481998bac3cfc8107e8%26size%3D980x%26c%3D4210160278%22%7D" caption="" pin_description="" image-library="0" expand=1 photo_credit=""]

On Tablet:

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F136d49b7-aca5-4f75-b35a-6c3a404ca621%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=641&h=c341f2ed14a6676065602e208946cf35a51e3f955177280471e24051be9f1bc2&size=980x&c=3935523589 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F136d49b7-aca5-4f75-b35a-6c3a404ca621%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D641%26h%3Dc341f2ed14a6676065602e208946cf35a51e3f955177280471e24051be9f1bc2%26size%3D980x%26c%3D3935523589%22%7D" caption="" pin_description="" image-library="0" expand=1 photo_credit=""]

On Mobile:

[rebelmouse-proxy-image https://media.rbl.ms/image?u=%2Fmedia.forumbee.com%2Fi%2F6a94f7b7-48b4-45d0-a580-cbd279541313%2F547.png&ho=https%3A%2F%2Fs3-us-west-2.amazonaws.com&s=770&h=292c0f805a67fe565054a7d4eed3ef3fcb1e8f9fb3c90f70deee6455a9c32ba6&size=980x&c=2657868290 crop_info="%7B%22image%22%3A%20%22https%3A//media.rbl.ms/image%3Fu%3D%252Fmedia.forumbee.com%252Fi%252F6a94f7b7-48b4-45d0-a580-cbd279541313%252F547.png%26ho%3Dhttps%253A%252F%252Fs3-us-west-2.amazonaws.com%26s%3D770%26h%3D292c0f805a67fe565054a7d4eed3ef3fcb1e8f9fb3c90f70deee6455a9c32ba6%26size%3D980x%26c%3D2657868290%22%7D" caption="" pin_description="" image-library="0" expand=1 photo_credit=""]

What Is RebelMouse?
Request a Proposal

Where 
Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat

new!

RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started
DISCOVER MORE

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

Layout and Design toolLayout and Design tool on mobile
animate
animate

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

upworthyConverations.indy100Vault12Hamu Es Gyemant RawStorydot.LAPrideMNI Market NewsPremierGuitarPenskeINN Educate Brand ConnectThe FulcrumGZEROOkayafricaBrit+CoPaper MagazinePowerToFlyNarcityCommonDreamsAllBusiness

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat