Jump to content

Hide Element from Mobile

Recommended Posts

Posted

Site URL: https://maroon-triangle-rlhr.squarespace.com

Hi there, 

Does anyone know the code that can help me have a code block work on the desktop but not show up on the mobile

We have a client that wants a review plugin on desktop. However, it takes up too much of the screen on mobile so we want it removed. The code used for the plugin is: <div class="rw-reviews-wrap"></div>
<script>/*<![CDATA[*/window._rwREl=JSON.parse('{"mode":"badge","pos":"top-left","key":"2760-9425-5578-6ac6-bdbc"}')/*]]>*/</script>
<script src="https://cdn.reviewwave.com/js/reviews.js"></script>

Is there anything I can do or add to the css or a code black to not have this shown? 

Any direction or help on this would be appreciated. I have searched all day on forum and squarespace help sites to not find a solution.

  • Replies 4
  • Views 2.1k
  • Created
  • Last Reply
Posted
3 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
.rw-launcher.rwl-top.rwl-left {
    display: none !important;
}
}

 

This works! Thank you so much! 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.