Checked in at NYU Poly Incubator.
Manhattan #WordPress Meetup. @WPNYC
Checked in at NYU Poly Incubator.
Manhattan #WordPress Meetup. @WPNYC
Checked in at Myrtle Hall (Pratt Institute).
Brooklyn #WordPress meetup!
I’ve been using WordPress to power my own website for a while now, and working with it in some way or another for even longer. Over the years, I’ve developed the belief that it’s a pretty perfect platform for people to build their own “digital home on the web”, considering the range of plugins and themes available, the flexibility of the publishing options it offers, and the fact that it’s completely open source, so you can do whatever you want with it.
That last bit is important in more ways than you might immediately think. Apart from just being able to write my own plugins or tweak my themes, this also means that I own my own data. I think in this MySpace/Facebook generation, people are all too loose with the data trails they create — giving up ownership of their digital self at the drop of a hat. In case you didn’t realize, when you use something like Facebook, it is not the product, you and your data are the product.
I’m working on a new WordPress theme (for this site, and it’ll be released for download once complete). The theme is deeply integrated with Jetpack, and one of the things I wanted to do was have the Jetpack Sharing buttons appear in a location other than the very end of the content. Normally they are applied as a filter on the_content, so they just appear right at the end. I wanted to relocate them into a different location, and it turns out that’s really easy to do with the power of jQuery.
jQuery( document ).ready( function( $ ) { // Relocate Jetpack sharing buttons down into the comments form jQuery( '#sharing' ).html( jQuery( '.sharedaddy' ).detach() ); } );
The #sharing
selector is just the DOM location where I want to move the buttons to, and the .sharedaddy
one is the container that Jetpack places its buttons in normally. We just detach it from the normal position and then dump it into the new location exactly as it was.
20+ Useful But Often Overlooked Utility Functions In WordPress
Nice list of WordPress stuff that people often overlook.