Remove "clear content" from editor - Forum | JoomShaper
Solved SP Page Builder

Remove "clear content" from editor

Asked by sdlsites 2 years ago Last activity 2 years ago

Is there a way to remove the "Clear Content" button from the frontend editor? This will probably cause a lot of problems for us. I have tried CSS and scripts, but it seems like the pagebuilder loads outside of the template overrides.

Accepted answer

Marked as the solution
Aris Ntatsis

Try to put

.builder-list-item.builder-list-item-delete.builder-list-item-action { display: none!important; }

in the editor.css file, located in /components/com_sppagebuilder/assets/css

Note that you may have to do it again after updating the SPBB, as I do not know any way to make overrides in this folder

4 more replies

Aris Ntatsis

Have you tried to use the "!important" tag in your css overrides?

sdlsites Asked this

Yes. I tried that in a few different spots. When I do it through the browser inspector, it works but when it is applied to the template or a script, it doesn't work. I am assuming that the editor ignores template overrides.

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Is this ok now? You can follow Aris's instructions.

-Regards.

Paul Frankowski Senior Staff

BTW

In futures updates we will Custom CSS for editor area, but for now you have to improvise.

sdlsites Asked this

Yes! That did the trick. Thanks so much. Custom CSS editor would be incredibly helpful so definteily an upvote on that from me.

Mehtaz Afsana Borsha Staff

Glad to know that your problem is solved. Have a nice day :)

Log in to reply.