elementor icon indicating copy to clipboard operation
elementor copied to clipboard

Better CSS editing in a central location

Open maxwellhibbert opened this issue 8 years ago • 142 comments

I'd like to propose a more centralised area for CSS editing in Elementor, to keep things tidy and easy to implement, as well as maintain. The current way of doing things, for me, ends up being very messy very quickly, with css code attached to elements here there and everywhere, with no indication for where custom styles are. I know there's an area for page css currently, but that's 3 clicks and a lot of mousing away.

So, please see a mock-up image of my idea, to get the gist of what I'm saying below.

elementor_css

My idea is to allow for global site styles, page/library item specific styles and styles attached to elements directly - all in the same panel. With easy breakpoints (like other responsive areas of Elementor) for quickly targeting devices and keeping code organised.

Also while in this mode, I imagine the classes for the selected element to be shown when they're selected, and maybe a toggle to show all elements with custom code attached.

Of course a keyboard shortcut to quickly toggle this panel would be great (keyboard shortcuts for everything!). And maybe via a styles icon on selected elements, something like this: extra icons

I also imagine it taking an icon spot on the bottom bar, with "Preview Changes" being moved to the new Update submenu perhaps. lol, maybe I'm pushing it 😄

Just an idea. I really like Elementor overall, I'm just coming from coding things manually and the current interface seems a bit inefficient (to me) in a few ways. The other big one that annoys me is that styling with the built in controls is way too repetitive when you want to tweak something on a few or more elements that are all the same - in CSS this is not an issue, obviously, because it's all class based. It's maybe not a super big issue when building things out with Elementor because of the duplicate button, but for tweaks it's super painful. Linked element styles perhaps?

maxwellhibbert avatar Jan 30 '18 04:01 maxwellhibbert

definitely +1!

rockscientist01 avatar Jan 31 '18 04:01 rockscientist01

+1

bodhi1970 avatar Jan 31 '18 20:01 bodhi1970

central location for css editing already is within the wp customizer - maybe el could hook into this?

but for me the real central location for best css editing still is a child theme... rarely use any other option - simply just because of not getting things messed up and always knowing where the custom tweaks are! :-)

dasigna avatar Feb 03 '18 15:02 dasigna

@dasigna yeah, but that way the styles are completely disconnected from the content and structure, making it really tedious to work on. So with my idea you can keep all the styles in one place and easily add classes to elements, modify structure and work on the content all at the same time, which means a much faster workflow.

I personally don't like the idea of attaching styles to elements directly, so I'd mostly use the global and page only styles. But part of my idea is to have a toggle to show all elements that have css code attached, making it much easier to maintain if that's how your styles have been added.

maxwellhibbert avatar Feb 03 '18 22:02 maxwellhibbert

+1

ddenev avatar Feb 04 '18 15:02 ddenev

+1

silvioghedin avatar Feb 07 '18 15:02 silvioghedin

+1

joexcm avatar Feb 27 '18 08:02 joexcm

+1

black-eye avatar May 02 '18 21:05 black-eye

+1 & Pro User

benhartwich avatar Jun 01 '18 11:06 benhartwich

+1. I would be happy with a window within Elementor that allowed one to connect with and write to the child theme's css file. Adding custom CSS to individual elements is a terrible way to maintain custom CSS across a website. This should be a high priority. Maybe put it in Pro as @benhartwich suggest.

dotpdesign avatar Jun 08 '18 14:06 dotpdesign

+1. Pro user.

john298612 avatar Jun 16 '18 17:06 john298612

+1

m0rg5 avatar Sep 14 '18 16:09 m0rg5

+1 & Pro user

jgajera avatar Sep 23 '18 23:09 jgajera

How many +1s do we need before Elementor starts working on a solution?

dotpdesign avatar Sep 23 '18 23:09 dotpdesign

+1 & Pro user

LeMiira avatar Sep 28 '18 15:09 LeMiira

+1 & Pro user - it's nice to have overriding css on any given element, but a singular custom css sheet to put general customizations would be great!

Angry-Hermit avatar Oct 11 '18 16:10 Angry-Hermit

+1

bzle avatar Oct 23 '18 20:10 bzle

As I mentioned in: https://github.com/pojome/elementor/issues/5983 it would be awesome to have all the basic needs in the global settings and elements. These are really missing now!

kayvanaarssen avatar Oct 25 '18 08:10 kayvanaarssen

+1

parasshah195 avatar Oct 25 '18 11:10 parasshah195

+1

nuphunk avatar Nov 05 '18 19:11 nuphunk