$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
Archives for January 2013
$wpdb::prepare()
I thought $wpdb->prepare() had been working for me. I really did. What I hadn’t realized, or taken the time to learn, was that prepare() functions similarly to printf(), taking placeholders for arguments provided after the query that is being prepared, i.e. $wpdb->prepare(“SELECT * FROM table_name WHERE id = %d AND title = %s SORT BY […]
30 Woothemes Canvas Tweaks
#1: Remove Page Titles .page .title { display: none; } #2: Remove page title from a specific page Change the page id 200 for this one to work .page-id-200 .title { display: none; } #3: Remove image border .entry img, img.thumbnail { background: none; border: medium none; padding: 5px; } #4: Change colour of drop […]
Use two Dropbox Accounts on One Computer
I found this today. What makes it extra awesome is that I didn’t even know I was looking for it. http://theterran.com/blog/2012/6/14/use-two-dropbox-accounts-on-one-computer.html Don’t have a Dropbox account yet? Signup using this link and you & I will both get an extra 500MB of storage space.
Re-locate Nav Menu Right of Logo
I’ve been using Woothemes‘ Canvas a lot lately. One thing I’ve found myself doing often is moving the navigation bar from its default location. With a few simple lines in functions.php and a quick addition to style.css, this is a breeze. functions.php add_action( ‘init’, ‘woo_custom_move_navigation’, 10 ); function woo_custom_move_navigation () { // Remove main nav […]
Display Dropbox Folder Using Custom Domain
I wanted to use my own domain name to display a public Dropbox folder. I had no interest in IFrames or HTML framesets so I turned to PHP. It only takes a few quick lines of PHP to tackle this. First use file_get_contents() to retrieve the page. Then use html_entity_decode() to clean up the results. […]