Answers.Body: <p>If you add a blank or invalid template path in your Section's settings (Settings > Sections > Edit Section) then both live preview and the share button will be disabled.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-18T17:13:05.307Z
Answers.LastActivityDate: 2018-10-18T17:13:05.307Z
Answers.UserDisplayName: Ben Croker
Body: <p>Is there a way to deactivate this functionality? We dont want our clients to use it just yet.</p>
  
  <p>I could delete them with my Module's js, but it is triggered after the site is build and the "popping" away of the buttons is not really pretty.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-18T15:07:30.173Z
Comments.Text: There are several ways to deactivate them... first of all you can include custom CSS that hides those so they won't pop up, furthermore you can extend the JS classes in order to remove their functionality and remove them.
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-19T05:49:18.683Z
Comments.Text: Well, hiding the buttons with css really was the easiest way of them all. I tried to make it more complicated than necessary. Thanks!
Comments.UserDisplayName: Leonardo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-06T13:48:04.417Z
Comments.Text: Could you please post your comment as an answer so i can accept it?
Comments.UserDisplayName: Leonardo
Tags: <craft3><control-panel><live-preview>
Title: Removing the LivePreview and Share Buttons?
ThreadText: # Removing the LivePreview and Share Buttons?
  
  (Asked by: username_0 on 2018-10-18)
  
  Is there a way to deactivate this functionality? We dont want our clients to use it just yet.
  
  I could delete them with my Module's js, but it is triggered after the site is build and the "popping" away of the buttons is not really pretty.
  
  **Tags:** craft3, control-panel, live-preview
  
  > **Comments:**
  > **username_1**: There are several ways to deactivate them... first of all you can include custom CSS that hides those so they won't pop up, furthermore you can extend the JS classes in order to remove their functionality and remove them.  
  > **username_0**: Well, hiding the buttons with css really was the easiest way of them all. I tried to make it more complicated than necessary. Thanks!  
  > **username_0**: Could you please post your comment as an answer so i can accept it?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-10-18. Score: 1
  
  If you add a blank or invalid template path in your Section's settings (Settings > Sections > Edit Section) then both live preview and the share button will be disabled.
  
  
  ---
  
  