Saw those Pad Lock Icon, External Icon, PDF Icon on WikiPedia? Now, you can add on a specific link in “go as you like way”. We hugely love inline CSS and jQuery inside a post. This avoids the problem with Demo in new design. All data remaining within a post. CSS Pseudo Class, Data URI Can add PDF, Pad Lock, External Link Icons. Here is a Guide on WordPress Link Icons For Specific Domain, Content. Question of any WordPress Plugin is not arising at all.
WordPress Link Icons For Specific Domain, Content : Revision of Old Guides
The drop caps effect in this post is also a CSS Pseudo Class we described before. Read the linked guide, that is very important. Another part is Base64 Data URI Encoding in CSS. Look at our Tools link menu in navigation, you will get an online tool hosted on our server for conversion of any image to Base64 Data URI. We developed a dangerously effective method combining everyone’s ways. This is just great way.
WordPress Link Icons For Specific Domain, Content : Steps
Javascript in any form is basically risky. Peoples can block it. Anyway, just a quick example plus tutorial. I want to add an external link icon only for the domain jima.in
after the hyperlink ends, in this post only. For that reason, I will embed this CSS in this post in Text mode, save and not switch back to Visual mode :
---
1 2 3 4 5 | <style> a[href ^= "http://jima.in"]:after { content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=); } </style> |
You need to see now whether I can really give you the demo of external link icon. Here is the link to that particular domain.
Do not think that I can not do it for a link within this website. This is a guide on how to add academic article like numbered references and a bibliography, which peoples often wrongly refer as footnote.
How it happened that the other links on this website, even this post not getting that icon? Because I used the full URL in another inline CSS :
1 2 3 4 5 | <style> a[href ^= "https://thecustomizewindows.com/2016/05/wordpress-footnote-and-bibliography-in-html5/"]:after { content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=); } </style> |
Now, if I want to add the link icon before the link, I need a basic tweak, I will change the :after
to :before
:
1 2 3 4 5 | <style> a[href ^= "https://thecustomizewindows.com/2016/05/mini-bulb-mini-bulb-holder-buying-guide-for-diy-electronics/"]:before { content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=); } </style> |
That example can be given with our guide on buying E 10 mini bulb holder.
If I changed the image to a padlock, it will look sane. For indicating a secured HTTPS website, you can add a padlock icon after or before the link. You can add a PDF icon on PDF download link. External link looks dirty to me.
Now, the you most likely saw :after
which uses one colon instead of two – ::after
. Old CSS2 syntax was that one colon. New CSS3 has both – single colon for the pseudo-classes and the double colon notation (::
) was is for the pseudo-elements. Only Internet Explorer 8 has no backward compatibility. We use single colon like :after
for wider browser support.
Now about SEO. It is bad to add an image beside a link without the alt
tag. But this icon is added using pseudo-elements, it is not inserted into the DOM. It is only visually displayed. Modern Search Engine bots can read the CSS and understand that it is done but crude alt
tag is not arising. Adobe’s PDF Icon is officially distributed by Adobe :
1 | http://wwwimages.adobe.com/content/dam/acom/en/legal/images/badges/Adobe_PDF_file_icon_24x24.png |
16×16 image is right for the purpose. This media specific icon is known as MimeTypes Link Icons. We can do that icon insertion with inline image too, but that is too crude. Padlock Icon can be shown easily :
For example, this is Cockpit Graphing and Sysadmin tool’s guide. This is what I used :
1 2 3 4 5 | <style> a[href ^= "https://thecustomizewindows.com/2016/05/cockpit-gnulinux-server-management-graphing-tool/"]:after { content: " " url("data:image/gif;base64,R0lGODlhEAANAPcAA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