Category: Snippets

Prevent CSS or JS Caching by versioning 0

Prevent CSS or JS Caching by versioning

Many time it happen that we update the new css on server but we still face problems that user sees the old css. Use following methodology to prevent this to happen: This works by...

Facebook Like/Share Box not Visible 0

Facebook Like/Share Box not Visible

Generaly website css hides the overflow of Facebook Like or Share Box. You can solve this just by putting few lines of css code into your website css file. #content embed, #content iframe{max-width: 480%...

How to change default excerpt length in WordPress 0

How to change default excerpt length in WordPress

To do this you just need to add few lines of code in functions.php

You can replace value 50 according to your requirements. Here 99 is filter priority. You can read more about...

2-java 0

Java: Base64 Image Encoder

Hello Friends, This Code convert your image file/data to Base64 Format which is nothing but text representation of your Image. To convert this you need Encoder & Decoder which you will get from http://www.source-code.biz/base64coder/java/....

Mobile OS detection in PHP CodeIgniter 3

Mobile OS detection in PHP CodeIgniter

For doing this there is one good plugin called “Mobile Detect”. Just download library from https://github.com/serbanghita/Mobile-Detect Put Mobile_Detect.php inside libraries folder of ci application. Whenever you need to detect the OS or any other parameter, use following...