Learn how to hide specific elements on a webpage before capturing a screenshot. This powerful feature allows you to remove unwanted elements like ads, notifications, headers, footers, and other distracting content to create clean, professional screenshots.
This functionality is particularly useful for creating presentation-ready screenshots, removing intrusive elements, and focusing on the core content you want to capture.
You need to specify the element you want to hide using the hide
parameter. The hiding can be specified by various element selectors:
&hide=Search
- hides element containing text "Search"&hide=mytable
- hides element with name "mytable"&hide=#mytable
- hides element with ID "mytable"&hide=.large-table
- hides element with class "large-table"Check out our element selection guide for more detailed examples and advanced techniques.
To hide multiple elements simultaneously, repeat the hide parameter:
&hide=.element1&hide=.element2&hide=#header
Element hiding is particularly valuable for removing these common webpage elements:
The screenshot below shows a website with all elements visible, including the header with a search bar and headings.
In this example, we can see the Google Play Store page with the header navigation (#gb) and category headings (.Z3lOXb) visible.
The example below will hide the header with the search bar based on the ID "#gb" and hide the headings based on the class name ".Z3lOXb":
// Line breaks added for readability https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&hide=#gb&hide=.Z3lOXb
&url=play.google.com
After hiding the specified elements, the screenshot is much cleaner and focuses on the main content:
Combine element hiding with other powerful features for complex scenarios:
Use browser developer tools to inspect elements. Right-click on the element you want to hide and select "Inspect" to see its HTML structure, then identify the text, ID, class, or name attribute to use in your hide parameter.
Yes! Use multiple hide parameters in your API request: &hide=#header&hide=.ads&hide=#sidebar
. All specified elements will be hidden before the screenshot is captured.
If the specified element isn't found on the page, the screenshot will be captured normally without any hiding. No error will occur, ensuring your screenshot process continues.
Absolutely! Element hiding works perfectly with full-page screenshots. The specified elements will be hidden throughout the entire page capture.
Combine element hiding with wait delays to ensure dynamic elements are fully loaded before attempting to hide them.
Yes! Element hiding works with all viewport sizes, including mobile and tablet dimensions.
You can hide any HTML element including divs, headers, footers, buttons, images, tables, and custom components. The element must be present in the page's HTML structure.
Element hiding is temporary and only affects the screenshot capture. The original webpage remains unchanged, and the hiding is applied only during the screenshot process.
Start creating clean, professional screenshots with element hiding using our free plan - 100 screenshots monthly at no cost.