简体   繁体   中英

My Google play badge isn't displaying on my site

 a href="https://play.google.com/store/apps/details?id=appinventor.ai_fleimlehner.Drafinity&hl=en">
     <img alt="Get it on Google Play" src="/images/brand/en_generic_rgb_wo_60.png" />
 </a>

This is the code I don't know what is wrong because I copied and pasted from a badge generator on Google play. The badge isn't showing up but the link is working.

Your link will work, regardless of what is entered as clickable eg:

<a href="https://play.google.com/store/apps/details?id=appinventor.ai_fleimlehner.Drafinity&hl=en">
    wibble
</a>

The image element ( <img alt="Get it on Google Play" src="/images/brand/en_generic_rgb_wo_60.png" /> ) will not work unless, within your images folder, in a brand subfolder you have an image with the name " en_generic_rgb_wo_60.png "

You should look into Relative and Absolute paths if you want a better explanation. The following link is quite an interesting and detailed artile on the IMG tag.

What you can also do is add the image url to an external site (though be aware some sites prevent this), for example:

<img alt="Get it on Google Play" src="http://cdn1.tnwcdn.com/files/2010/09/1-500x354.gif" />

Apologies if the image stops working above, but you should get the general idea of what you need to do. Find the URL of the picture and use that instead of the routing string.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM