TwinrDocs
Theme and screens / Hide Elements

Hide Elements

Remove parts of your website that do not belong in a mobile app.

Websites carry things an app does not need — a site header duplicating your app's navigation, a cookie banner, a newsletter popup, a footer full of links. Hiding them makes your app feel built for a phone rather than borrowed from a browser.

Your website is not changed. These rules apply only while the page is displayed inside your app. Visitors on the web see your site exactly as before.

Open General Settings → Hide elements.

The Hide elements tab with two entries, each having an element identifier and a list of screens

Add an element

Click Add element and fill in two fields:

FieldWhat to enter
Element's IdentifierA CSS selector for the thing to hide — header, .cookie-banner, #newsletter-popup.
ScreensWhich screens to hide it on. Pick one, several, or all of them.

Because each entry has its own Screens list, you can hide your site header everywhere but keep the footer only on your About screen — all from this one tab.

Finding the selector

Open your site in a desktop browser, right-click the element you want gone, and choose Inspect. The highlighted tag shows its id and class:

  • an id becomes #name
  • a class becomes .name
  • a plain tag is just its name, such as header or footer

Prefer tags and IDs over generated class names. A class like ._topbar_1xe1m_3 is produced by a build tool and changes the next time your site is deployed — and when it does, the element quietly comes back. header keeps working.

Click Save as draft, then refresh the Twinr Preview app to check the result on a phone.

Common Questions

01The element is still showing.

Either the selector is wrong or the element loads after the page. Confirm it by running document.querySelector('your-selector') in your browser console — if that returns nothing, the selector does not match.

02Hiding the header left a gap.

The element is hidden but its space may remain, depending on how your site is built. Use Custom CSS to collapse the space as well.

03Can I hide something on one screen only?

Yes — that is what the Screens field is for. Add the element and pick just that screen.