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. Remove Row Background Image on Mobile

Remove Row Background Image on Mobile

This guide will show you how to remove a row background image on mobile, and allow you to specify a background colour instead.

Smallest Screen Size (Mobile phones only)

Specify a custom CSS class for your row

To switch the background image off on mobile phones, you first need to specify a custom CSS Class for your row. To do this, click the gear icon when hovering over the row to access the row options.

Enter a name for your custom CSS class as shown below:

In this example i have named my CSS class “bg-change”. You will need this custom class in a moment

Add CSS to hide the Row and replace with colour

Next, go to Page Settings > Other Scripts > Custom CSS and add this code:

@media only screen and (max-width: 479px) {
.bg-change{background-image:none !important;background-color:#222222 !important;}
}

You will need to change the “bg-change” part with your custom row class name (ensure you still keep the dot/period before the name)

Now you need to specify the colour you want to replace the image with on mobile. Replace the #222222 with the hex colour code you want to use

You can find a hex colour picker here:http://www.w3schools.com/tags/ref_colorpicker.asp

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