Category: Code Snippet
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
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.…
How to Find Facebook Page/Profile IDs
Many Facebook Applications need Facebook Page ID and Profile ID or Admin ID. If you are using a custom username for your Facebook profile or page,e.g facebook.com/PixelInsert then unique ID will not appear. Facebook social plugins require this unique ID 1. Facebook Graph API Facebook Graph API help detecting Facebook Page/Profile/Admin ID from your Facebook username You will…
Redirect https to http on your site with .htaccess
You can use the following snippet to avoid having duplicate listings in the search engines or when your site showing security errors on your browser
Fatal Error : Out of Memory in WordPress
WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of xxxxxx bytes exhausted”. This setting increases PHP Memory only for WordPress, not other applications WordPress will automatically check if PHP has…
Install Favicon into a WordPress website
1. Upload favicon.ico to the theme directory, e.g wp-content/themes/twentyeleven 2. Open file header.php, add the following code between <head> and </head>