<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>

CC BY-SA 4.0
2018-10-18T17:13:05.307Z
2018-10-18T17:13:05.307Z
Ben Croker
<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>

CC BY-SA 4.0
2018-10-18T15:07:30.173Z
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.
Robin Schambach
CC BY-SA 4.0
2018-10-19T05:49:18.683Z
Well, hiding the buttons with css really was the easiest way of them all. I tried to make it more complicated than necessary. Thanks!
Leonardo
CC BY-SA 4.0
2019-08-06T13:48:04.417Z
Could you please post your comment as an answer so i can accept it?
Leonardo
<craft3><control-panel><live-preview>
Removing the LivePreview and Share Buttons?
# 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.


---

