I’m try to add a banner image to the list.phtml, but it’s not displaying.
This is what i did:
step 1: copied /public_html/vendor/mirasvit/module-rewards/src/RewardsCustomerAccount/view/frontend/templates/account/list.phtml
into
/public_html/app/design/frontend/Infortis/ultimo/Mirasvit_RewardsCustomerAccount/templates/account/list.phtml
step2: upload the image to /public_html/app/design/frontend/Infortis/ultimo/web/images/membership-banner.jpg
step 3: modify the list.phtml as below
<?php
/** @var MirasvitRewardsCustomerAccountBlockAccountListing $block */
$collection = $block->getTransactionCollection();
$earnRules = $block->getDisplayEarnRules();
$spendRules = $block->getDisplaySpendRules();
?>
<div class="block block-rewards-account-summary order-details-items">
<div class="block-title">
<?= $block->getChildHtml('rewards.page.main.title'); ?>
<strong><?= __('Points Summary') ?></strong>
</div>
<div class="block-content">
<p><?= __('You have <b>%1</b> in your account.', $this->helper('MirasvitRewardsHelperData')->formatPoints($block->getBalancePoints())); ?></p>
<p><?= $block->getChildHtml('rewards.notification') ?></p>
<p><?= __('test.'); ?> </p>
</div>
<!--adding this part trying to display the image-->
<div class="block-content">
<img src="https://magento.stackexchange.com/<?php echo $this->getViewFileUrl("Infortis_Ultimo::images/membership-banner.jpg'); ?>' alt="membership-banner" width="1150" height="325">
</div>
</div>
step 4
: run php bin/magento s:s:d; php bin/magento c:f but nothing changes on the frontend.