tried to lift up text part of the date for a few px so that icon and text’s center lines are aligned, tried margin-padding without success.
Try change this CSS :
span.posted-on {
font-size: 20px;
}
to:
span.posted-on {
font-size: 20px;
display: flex;
align-items: center;
}
and instead of img url can we use <svg xmlns= …. </svg> markup?
Not using this method, background image can only be used as URL.
If you want to use <SVG>
without uploading the <SVG> to your server, you can give the block element – post meta template a try:
https://docs.generatepress.com/article/block-element-post-meta-template/
In this way you can use Headline block to add the <SVG> to the icon field.