Disable or hide "attend" button for Events

867
4
Jump to solution
02-09-2022 01:36 PM
JayJohnsonWashoeCounty
Occasional Contributor III

Can we disable or hide the "Attend" button on HUB Event pages?  We are not using Community Accounts and our internal customer does not want to track who is attending events.

JayJohnsonWashoeCounty_0-1644442516671.png

 

 

 

 

Jay
Washoe County GIS
Tags (3)
1 Solution

Accepted Solutions
JayJohnsonWashoeCounty
Occasional Contributor III

Samantha,  Thanks - that was a 75% improvement.  Putting that code in the footer DID hide the Attend button in the main part of the Event page and the Sponsored by section (yay!), but if the user hovers over the apparently blank are on the left, they still get a popup.  The popup actually says "Attend" twice.

JayJohnsonWashoeCounty_1-1644446397529.png

Thanks,

Jay

Jay
Washoe County GIS

View solution in original post

0 Kudos
4 Replies
SamanthaHunter
Esri Contributor

@JayJohnsonWashoeCounty Disabling the "attend" button for Hub events is not currently a customization option. However, we have seen others 'hide' them by adding the following to the HTML section of the custom footer for their site.

You might have to tweak colors depending on your theme. Hope this helps!

<style>
/*entire attend and share button area*/
div.event-actions {
  background: #fffff;
}

/*just attend button area */
div.event-registration-button.ember-view {
  display: none;
}

/*just organizers line */
div.event-view-organizers.ember-view {
  display: none;
}

/*the whole follow area */
div.event-view-initiative.ember-view {
  display: none;
}

/*attend icon image*/
#ember-arcgis-hub-components-hub-icons-ticket-hollow {
  visibility: hidden;
}

/*replace sponsored by text with white to hide*/
div.card-sponsors {
color: #ffffff
}
</style>

 

0 Kudos
JayJohnsonWashoeCounty
Occasional Contributor III

Thanks Samantha, I'll give that a try.

Jay
Washoe County GIS
0 Kudos
JayJohnsonWashoeCounty
Occasional Contributor III

Samantha,  Thanks - that was a 75% improvement.  Putting that code in the footer DID hide the Attend button in the main part of the Event page and the Sponsored by section (yay!), but if the user hovers over the apparently blank are on the left, they still get a popup.  The popup actually says "Attend" twice.

JayJohnsonWashoeCounty_1-1644446397529.png

Thanks,

Jay

Jay
Washoe County GIS
0 Kudos
JayJohnsonWashoeCounty
Occasional Contributor III
0 Kudos