elementor / elementor/elementor

⌛ 🔗 SVG image width is hard coded as 48px when the Image widget has a link

Open
#11,031 50 comments 11 reactions 0 assignees View on GitHub
component/code control/url mod/b* mod/d* mod/e* mod/s* status/evaluating type/layout type/styles widget/image
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

## Prerequisites

- [x] I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
- [x] The feature is still missing in the latest stable version of Elementor ( Elementor Pro. )

**What problem is your feature request going to solve? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When uploading SVG to and image widget and adding a link the width is set to 48px in CSS. It ignores size specifications from the widget. See frontend.min.css
```.elementor-widget-image .elementor-image > a img[src$=".svg"], .elementor-widget-image .elementor-image figure > a img[src$=".svg"] {width: 48px;}```

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
Allow overriding the 48px width of svgs in image widget

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
Currently I write I add an width declaration via custom css

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.