Home>Support>Remove empty div on touch device

Remove empty div on touch device

Is it possible to remove divs which are empty on touch devices? I tried to use the :empty selector but it does not work.
This is the pag I am working on, the red and green area’s are the problem.

http://lwl.lightworklounge.nl/diensten/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Rens,

    Based on the context, :empty not working makes sense.

    Please open each row you wish to hide on mobile and head over to the row style sidebar and open the attributes settings group. Set the row class to hide-mobile and then save the page once you’ve done this for all rows.

    Then navigate to WP AdminAppearanceCustom CSS and add the following CSS:

    @media (max-width: 768px){
    	.hide-mobile {
    		display: none;
    	}
    }
    

    You may need to adjust the max-width amount.
    You might also need to install the SiteOrigin CSS Editor.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More