Render paragraph and heading typography styles on front end
[MAILPOET-3007]
This commit is contained in:
committed by
Veljko V
parent
6d59143453
commit
2c33cbfa24
@@ -80,6 +80,12 @@ class Heading {
|
||||
if (isset($block['params']['text_color'])) {
|
||||
$styles[] = 'color: ' . $block['params']['text_color'];
|
||||
}
|
||||
if (!empty($block['params']['font_size'])) {
|
||||
$styles[] = 'font-size: ' . $block['params']['font_size'] . 'px';
|
||||
}
|
||||
if (!empty($block['params']['line_height'])) {
|
||||
$styles[] = 'line-height: ' . $block['params']['line_height'];
|
||||
}
|
||||
if (!empty($block['params']['background_color'])) {
|
||||
$styles[] = 'background-color: ' . $block['params']['background_color'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user