Issue #1844Opened March 1, 2019by sakshigarg90 reactions

Remove upload image option and disable (x) icon for default images

Question

I want to remove the "Drop files here or click to upload" section and also disable the (x) cross icon next tothe default images, not allowing the user to delete default images.

@artf where do i change the css? I'm using the grapesjs-preset-webpage

Originally posted by @sakshigarg9 in https://github.com/artf/grapesjs/issues/578#issuecomment-467823560

Answers (3)

NicoEnglerMarch 3, 20190 reactions

One easy way to achieve this would be adding some CSS rules:

.gjs-am-file-uploader { display: none; } .gjs-am-assets-cont { width: 100%; }

And so on ... :)

sakshigarg9March 4, 20190 reactions

Thanks worked! But I'm unable to remove the (x) icon next to the default images despite using .gjs-am-close{ display: none; }

NicoEnglerMarch 4, 20190 reactions

Great, just use that css rule to hide it.. :)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.