Using "Constrain image size" in "Sitewide Header Site Title" results in HTML code error
Permalink 0 0 Browser Info Environmentstyle="width: 250px;"
Concrete5 websites that use "Constrain image size" in the "Sitewide Header Site Title" have this incorrect HTML code:
<div class="ccm-custom-style-container ccm-custom-style-headersitetitle-673" width: 250px;> <a href="https://domain.com/index.php"><img src="https://domain.com/application/files/cache/thumbnails/5ea1f9ed7c2b5dde12810f8b9e6c1812.png" alt="logo" width="250" height="250" class="ccm-image-block img-responsive bID-673"></a> </div>
Note the
width: 250px;
style="width: 250px;"
The problem is caused by /src/Block » CustomStyle.php » getCSS(), probably in this line:
foreach ($groups as $suffix => $styles) { $css .= '.' . str_replace(' ', '.', $this->getCustomStyleClass()) . $suffix . '{' . implode(';', $styles) . '}';
Status: New