You are viewing the OptimizePress 2.0 Help center. Click here for OptimizePress 3.0 support.
  1. Home
  2. Knowledge Base
  3. LiveEditor Customizations
  4. How to Hide an Element on Desktop?

How to Hide an Element on Desktop?

You should be able to do this with a little custom CSS. Basically this would be doing the reverse of what our built-in options do.

Please follow the given steps:

1. Go to Page Settings >> Other Scripts >> Custom CSS and add the given code below.

@media only screen and (min-width: 960px) {
.hidedesktop{display:none;}
}

2. Find the element you would want to hide on desktop then click the \’Advanced element options\’ icon.

3. Enter the word \’hidedesktop\’ as an element class under the Element class option. Kindly refer to the screenshot link as a guide for this:

This will ensure that the element is only shown on screen widths lower than 960px (which is typical desktop resolution).

IMPORTANT: “hidedesktop” (without quotes) class is just an example. You are free to create/use your own element class.

Was this article helpful?

Related Articles

Support Discontinued
As a discontinued platform, OptimizePress 2.0 is no longer officially supported. We recommend upgrading to our new OptimizePress suite. Click the button below to see our latest plans
Upgrade to OptimizePress 3.0