Link of image is not working in magento 2
Question
I added one Image with a link. Now link is showing up in the console but nothing happens when I click on Image.
here is my code
<a href="{{config path="web/secure/base_url"}}manufacturers-listing/amphenol" target="_self"><img src="{{media url="wysiwyg/smartwave/porto/homepage/05/slider/amphenol.jpg"}}" /></a>
La solution
Try the below code:
<a href="{{store url="manufacturers-listing/amphenol"}}" target="_self"><img src="{{media url="wysiwyg/smartwave/porto/homepage/05/slider/amphenol.jpg"}}" /></a>
Autres conseils
can you replace by below code
<a href="{{store direct_url=""}}manufacturers-listing/amphenol" target="_self"><img src="{{media url="wysiwyg/smartwave/porto/homepage/05/slider/amphenol.jpg"}}" /></a>
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange