How can I hide specific pages from being displayed on certain screen sizes in Webflow?

Published on
September 22, 2023

To hide specific pages from being displayed on certain screen sizes in Webflow, you can use the built-in Webflow interactions or custom CSS media queries. This can be useful if you want to create a more responsive and tailored experience for different devices.

Here are the steps to achieve this:

Using Webflow Interactions:

  1. Select the element or page you want to hide on certain screen sizes.
  2. Open the Interactions panel from the right-hand sidebar.
  3. Click on the New Interaction button and choose Page Trigger or Element Trigger depending on your use case.
  4. Set the trigger to On page load or choose an element interaction trigger like Scroll into view.
  5. Select the Hide action from the Affect dropdown.
  6. Click on the Easing field to change the animation type or speed if needed.
  7. Toggle the Only trigger once option if you want the interaction to happen only once.
  8. Finally, in the Limit to section, choose the screen size(s) where you want to hide the page or element. You can select from a range of pre-set dimensions or enter custom values.

Using Custom CSS Media Queries:

If you prefer to use custom CSS, follow these steps instead:

  1. Open the Designer panel in Webflow.
  2. Navigate to the page or element you want to hide on certain screen sizes.
  3. Click on the Settings icon ("gear" icon) for that element or page.
  4. Choose the Custom Code tab.
  5. Add the following CSS code into the Head Code or Embed Code field:
@media (max-width: 768px) {  .your-element-class {    display: none;  }}

Make sure to replace .your-element-class with the actual class or ID of the element or page you want to hide. Also, note that max-width: 768px is just an example and you can adjust this value to target the desired screen size.

  1. Click Save and then Publish your site to apply the changes.

By utilizing Webflow interactions or custom CSS media queries, you can successfully hide specific pages or elements on certain screen sizes, providing a more optimized experience for your users.

Additional Questions:

  1. How do I show specific elements only on mobile devices in Webflow?
  2. What are some best practices for responsive design in Webflow?
  3. Can I create custom breakpoints for different screen sizes in Webflow?