30 Jul

External Link Favicons in WordPress

Many favicons from random websites

Favicons (aka “favourites icons”) are small icons, typically 16 x 16 pixels, that represent your website in browser tabs, bookmarks, desktop shortcuts and more. They’ve been around since 1999, are in use by most sites, we’ve all seen them.

We are soon adding a links and resources page to CodePeach for web development, coding and design sites that we find useful. A page full of text links never looks appealing, so I thought one way of spicing up a links page visually would be to place each link’s small favicon image next to the link itself. It’s also a great way for users to visually relate to the linked websites.

So let’s look at how to create a shortcode to display the favicon for a remote website in our WP content.
Read article

Related Posts

18 Jul

Coding your own WordPress Shortcodes

By: Alexander Gounder

WordPress shortcodes can be used within your page or post content which invokes a specific function  which inserts content at the position of where you inserted the shortcode. Uses for shortcodes are endless, from inserting media content and galleries, to social media like and share buttons, showing lists of recent or related posts, and so on.

Many WordPress themes and plugins will add new shortcodes for you to use, but at times you may wish to add your own custom shortcodes which aren’t already available. Fortunately, WordPress makes developing your own an easy task for anyone who is familiar with WordPress and has basic PHP skills.

Here I’ll show you the basics of how to develop your own custom WordPress shortcode. We might as well make it do something practical, so we will create a shortcode that inserts a Google+ +1 button. These neat little +1 buttons allow your site’s visitors recommend your site in Google search, and share via the Google+ social media platform.
Read article

Related Posts