1
You can call static images in phtml by:
<img src='<?php echo $this->getViewFileUrl('images/my-logo.png'); ?>' alt="Logo">
Img Path:
app/design/frontend/{Package}/{theme}/web/images/my-logo.png
Ref: link
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
phtml × 680magento2 × 329
magento-1.9 × 131
blocks × 78
php × 63
template × 54
layout × 53
magento2.3 × 40
javascript × 38
xml × 38
overrides × 32
magento-2.1 × 29
module × 29
html × 26
frontend × 23
static-block × 23
magento2.2 × 21
css × 20
category × 17
controllers × 16
cms × 16
product × 15
magento-1.7 × 15
theme × 15
jquery × 15