Yearly Archives: 2017

Translate WordPress Programmatically With Gettext (Without .PO/.MO)

Add this to the functions.php of your theme. This example is to be used with my Ask Me Anything (Anonymously) WordPress plugin. To use it with other themes and plugins, change the text domain of the theme or plugin in

Posted in WordPress Tagged with: ,

Identify Mobile / Tablet / Desktop Using Screen-size in CSS

Add these to your CSS stylesheet as necessary. CSS to be used only on Mobile devices This CSS will be used when the screen width is less than 576px. @media screen and (max-width: 576px) {   .selector {     property: value;   }

Posted in WordPress Tagged with: ,

Web Development Tutorials For Beginners (PHP, CSS)

Free YouTube playlists to learn PHP and CSS PHP Basics https://www.youtube.com/watch?v=ymp2YGvz0Qk&list=PL1Cc8fmlMrBaW-PwhG9iEXqdDA9dtZpDd Basics + Advanced

Posted in Tutorials Tagged with:

Hidden Background Music Using HTML5 Audio

Add this to the footer of your page before the closing </body> <audio style="display:none;" src="<?php echo CPM_BASE_PATH; ?>assets/audio/bg-music.mp3" loop autoplay></audio> For more details, refer the HTML5 Audio guide.

Posted in WordPress Tagged with:

WordPress Malware Removal And SSL Installation

When it comes to web security, housekeeping and maintenance is just as important as proper development. For WordPress, housekeeping should ideally be done at least once every three months. Luckily, maintaining a WordPress website isn’t too hard. Make sure your

Posted in WordPress Lab Tagged with: