Tag: code snippet
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>
WordPress: Sorry, this file type is not permitted for security reasons.
Add the following code snippet to functions.php. Change ‘filetype’ to the file type that is not permitted for security reasons
The Easy Way to Add Videos to WordPress
All we need to do to add (embed) a video into a post or page is to post the URL to it into the content area via Visual Editor You can set a maximum width and height The White-listed providers YouTube (only public videos – “unlisted” and “private” videos will not embed) Vimeo DailyMotion blip.tv Flickr…