ArcGIS Enterprise Sites: Allow to hide the Layers/Download/API buttons and About Section

1082
1
07-27-2021 12:14 AM
Status: Open
Labels (2)
Martin1
Occasional Contributor

We are building an Open Data Site to allow access to public datasets for everyone over the internet. While we are generally happy with the options that ArcGIS Enterprise Sites gives us, we would like to apply some changes to the detail view page of a dataset. 

More specifically, we would like to be able to make the buttons "Layers", "Download" and "API" as well as the whole section "About" disappear (see attached screenshot). While this information makes sense in an ArcGIS Enterprise environment, we think it confuses external users.

1 Comment
Martin1

We found out that over the "Custom HTML/CSS" windows under "Header" it is possible to inject your own CSS and such with a little code letting disappear many items that we did not want to show on our page.

This is what we put under the Custom HTML window.

<style>
#download-container, #dataset-column-right, .dataset-headline-updated, .metadata-row, .metatag-updated, .metatag-type, .owner-source {
display: none;
}

@media only screen and (max-width: 760px) {
#sidebar-left{display:none;}
}

</style>