Tag: code snippet
How to add a WordPress shortcode outside of the post editor or PHP templates
Shortcodes were introduced back in WordPress 2.5. Shortcodes are for creating macros to be use in a posts. For instance, the following shortcode (in the post/page content) would add a photo gallery into the page: [ gallery ] If you want to use that shortcode outside of the WordPress post or page editor or PHP…
How to make IE to display iframes with transparent background?
1. Add allowTransparency=”true” property to the iframe 2. Add background:transparent to it’s body tag or internal styles in the head section of an HTML page or
Remove WordPress Revisions
WordPress Posts Revisions are useful especially in the case of a multi author blog. However, There is a cost to having all these saved revisions of your posts in the aspect of database entries. Instead of having a single MySQL database record for your post you will have multiple records for each post therefore increasing…
How to Add Pinterest “Pin It” to WordPress
Pinterest is a vision board-styled social photo sharing website and app where users can create and manage theme-based image collections. Users of Pinterest curate themed image boards, populating them with media found online using the “Pin It” button, or uploaded from their computer. Each such item of media is known as a “pin,” and can…
How to change the bullet size and color with CSS
The following code snippet help you change the bullet size and color of your unordered lists. We are using simple CSS code to do that 1. Create your bullet list image via Adobe Photoshop or you can use another image editor to do that (e.g Pixelmator). Save the image as a transparent png image file.…