Posted by & filed under WordPress.

The following steps may be helpful for a site migration where you need to find and replace all the old URLs with the new URLs. Problem: site references old URL (http://www.domain1.com). New URL is http://www.domain2.com Solution: Use the command line to make short work of the task. user@server:~$ mysql -u root -p Enter password: Use the database

Continue reading →

Posted by & filed under WordPress.

Adding this snippet to the functions.php of your WordPress theme will add a custom class to links output by the_tags template tag.   function add_class_the_tags($html){ $postid = get_the_ID(); $html = str_replace(‘<a’,'<a class=”wpsnipp”‘,$html); return $html; } add_filter(‘the_tags’,’add_class_the_tags’,10,1);

Posted by & filed under Twitter Bootstrap.

In order to get Twitter Bootstrap buttons text to wrap onto multiple lines do the following: Add white-space: normal; to the style definition of the Bootstrap Button. .btn { white-space: normal; } Incoming search terms:https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 4szFE1Fd4m0aP1dVwL44UwgzliFStmr9xxTfBT7hXaDdfoIGRQdOjkEeyHW9w_rk 081192a58f60ef3e3429144c9fbf4c91d53191ed&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme,https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 zwiVi1FgFkciOAxAcPWPcMCmASvwJHOzGA6dIrudB4sg_x6dnZG-ca5TMT2-7SgR f6dc247980947da201ee2bd37283b851bd905905&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme