Monthly Archives: May 2012

Adjust Nav spacing in WordPress Twentyeleven

Depending on how many pages you have, your navigation might not (probably won’t) line up evenly. To fiddle with it, i add this to my custom theme’s style.css file and vary the number (15) until it looks right: .page_item { … Continue reading

Posted in Uncategorized | Leave a comment

Connect WordPress to a second database

While building a wordpress site and needed to work with a separate existing database. Added a function in wp-includes/functions.php like this: function my_query($sql){ $db = @mysql_connect(“my_DB_host”, “DB_usr”, “DB_pass”); mysql_select_db(“my_other_database”); $result = mysql_query($sql) or die(‘Did not get required database result’); return … Continue reading

Posted in Uncategorized | Leave a comment