Skip to content

Suggestion - Use "selector" only when needed in Custom CSS, not forced #1086

Closed
@pingram3541

Description

@pingram3541

Currently when using the Pro Custom CSS feature we are restricted to css for that element and child selectors only. We can't apply hierarchical rules such as "body.is-special .some-elementor-selector a" For example, adding custom css to a text element like so:

a {
  color: blue;
}

results in:

.unique-elementor-selector-class a {
  color: blue;
}

However we can already do this using "selector" to achieve the same result:

selector a {
  color: blue;
}

So why not remove the forced inclusion and allow us full freedom to write our own rules, media queries, @font rules and most importantly body class selectors so we can truly refine our designs without leaving the designer?

This way if we have full control without sacrificing the simplicity of using custom because we still have the dynamic "selector" variable.

Yes we can do this with tools outside Elementor, but that's not what we want. =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    product/proIndicates if the referenced component is part of the Elementor Pro plugin.request/enhancementIndicates an Enhancement Request for an existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions