RebelMouse Talk to Us
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
The Most Secure CMS of 2022
Featured

The Most Secure CMS of 2022

Why RebelMouse Is the Most Secure CMS on the Web

Delivering a secure, high-performing environment with extreme reliability is essential to all of our clients at RebelMouse. We only use industry-leading, reliable approaches to host our infrastructure. This ensures maximum stability and security for all of our clients’ data. Here are just some of the reasons we’re able to maintain a hard-bodied product that’s flexible, too.

Keep reading... Show less
Google Made Major Changes to Its Formula for Page Speed. Here’s What to Do About It in 2022.
Rebel Insights

Google Made Major Changes to Its Formula for Page Speed. Here’s What to Do About It in 2022.

Make sure your site is set up for success in 2022.

In the spring of 2020, Google let the world know that its Core Web Vitals would become the new benchmark for measuring a site's performance in its search results, known as the page experience update. Fast forward to more than a year later in August 2021 when, after much anticipation, Google's page experience update became official.

Since its rollout, developers have felt the impact of how their publishing platforms stack up against the new standard. Important decisions around the architecture of your site can now make or break your site's performance in the eyes of Google.

HTTP Archive, a tracking platform that crawls the web to identify trends and record historical patterns, has revealed how top content management systems (CMS) have weathered the page experience update through the creation of its Core Web Vitals Technology Report. RebelMouse consistently outperforms major CMS platforms on Google's most critical metrics since its rollout and into 2022:

Getting superior scores on Google's performance benchmarks isn't easy, either. The Ahrefs blog analyzed Core Web Vitals data from the Chrome User Experience Report (CrUX), which is data from actual Chrome users, to see how the web stacks up against Core Web Vitals. Their study found that only 33% of sites on the web are passing Core Web Vitals.

data from Ahrefs tracked on a line chart finds that shows only 33% of sites on the web pass Google's Core Web Vitals From Ahrefs.

Luckily, performing well on Core Web Vitals is possible with thoughtful, strategic changes to your site’s codebase. Here's what you need to know and how we can help.

Keep reading... Show less
Interested in a Free Website Health Check?Check Your
Website's Health
Get Your Free Analysis Now