Issue #1844💬 AnsweredOpened March 1, 2019by sakshigarg90 reactions

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

Quick answerby NicoEngler

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 ... :)

Read full answer below ↓

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

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

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

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.