Visual (non-HTML) display of post revisions

So you know when you click « show revisions » on a post and can choose to edit any of the recent drafts? I have a client, non tech-savvy, who is frustrated by how the revision previews display as HTML rather than how they would appear on the site. He finds it hard to determine which revision he wants to use because he can’t see the images, formatting, etc. I looked for a plugin that would allow you to preview the revisions in their published form, but was unable to find anything…

Around friends and family using older browsers?

https://plus.google.com/+AddyOsmani/posts/ij3e1RQXW1J Addy Osmani: If you’re around friends and family using older browsers this year, why not take a few minutes out to help them upgrade to an evergreen browser? Evergreen browsers are browsers with an automatic upgrade path (e.g Chrome, Firefox and Opera) and will mean that they can enjoy the best the web has to offer and avoid broken browser experiences in the future. Just updating the family laptop. I hope you are as well… Source: web design weekly

Web Design Weekly #71

Headlines A Tale of Animation Performance A great post by Chris Coyier with an awesome video by Paul Irish that is compulsory viewing. The post came about when Chris was asked if there was any sources confirming translate() is better than top/right/bottom/left for moving objects. (css-tricks.com) Hot in web standards: November/December 2012 Lea Verou’s final 2012 report on the latest developments at the W3C, including the FPWD of HTML 5.1, the addition of the element, news on the rescheduled W3Conf and more. (netmagazine.com) Interactive Guide to Blog Typography (kaikkonendesign.fi) Vexing…

Remove Trackbacks from Comment Count in WordPress

Are you finding that your comment count in WordPress not the correct number? Adjusting the settings in the discussions screen still doesn’t fix it. Well, this little snippet of PHP added to your functions.php file should fix that. Add this snipper to your functions.php file to tweak the comment count to not show trackbacks. add_filter('get_comments_number', 'comment_count', 0); function comment_count( $count ) { if ( ! is_admin() ) { global $id; $get_comments = get_comments('status=approve&post_id=' . $id); $comments_by_type = separate_comments($get_comments); return count($comments_by_type['comment']); } else { return $count; } } Source: web design…

Sticky Posts exceed posts per page limit

I’m using pre_get_posts to adjust the number of posts displayed on my homepage. function lifelounge_query_adjust( $query ) { if ( is_home() ) { set_query_var( ‘posts_per_page’, 12 ); return; } } add_filter( ‘pre_get_posts’, ‘lifelounge_query_adjust’ ); But I am running into a problem with sticky posts. Basically, if I have any sticky posts, the query will display more than the 12 posts I have specified, because it will display 12 plus any sticky posts. I could, of course, ignore sticky posts: function lifelounge_query_adjust( $query ) { if ( is_home() ) { set_query_var(…

SitePoint Podcast – The End

http://www.sitepoint.com/podcast-192-the-end/ In this, the very last episode of the SitePoint Podcast, the extended panel of hosts and producers take a reminisce through their memories of the four years doing the podcast, what it has meant to them and how they will look back on it. Thanks to all that shared their knowledge and helped me become a better developer. I was a big fan of the SitePoint Podcast. Sad to see it go, but I also feel like it was the right decision. Source: web design weekly

Dive into Flexbox

http://weblog.bocoup.com/dive-into-flexbox/ Greg Smith: Authors have long been using tables, floats, inline-blocks, and other CSS properties to lay out their site content. However, none of these tools were designed for the complex webpages and webapps we are making nowadays. Simple things like vertical centering require work. Complex things like flexible grid layouts are so hard that it’s considered ambitious to roll your own, hence the success of CSS grid frameworks. Still, if so many projects needs to do these things, why can’t it just be easy? Flexbox aims to change all…

Web Design Weekly #70

Headlines The Importance of Sensibility in Designers and Developers When we are sensible towards both design and development, we can prioritise features, we have better insight into our process, and we will create a better product with the restraints we have. (miekd.com) CSS Next Divya Manian writes about what awesome features are coming in CSS. Exciting times! (nimbupani.com) WordPress 3.5 “Elvin” (wordpress.org) Mozilla Gameon (gameon.mozilla.org) Articles Redesigning the Media Query The media query is the ringmaster of responsive design. It lets us establish the rules of the game and gives…

What I Learnt Building Twitter Bootstrap

https://medium.com/what-i-learned-building/b95033c270af Jacob Thornton: Today Bootstrap is really fucking popular. However, what people often don’t realize is that despite its popularity, and despite it being a “Twitter” project, it isn’t actually maintained by a team at Twitter (nor was it ever). Bootstrap is (and has always been) maintained by two nerds who like to write code together. Just two nerds. What’s more, this wasn’t something we did in the office – there was no “Bootstrap team” – no 20% time – just Mark and I hacking in our free time. And…

WordPress 3.5 “Elvin”

http://wordpress.org/news/2012/12/elvin/ If you’ve been around WordPress a while, the most dramatic new change you’ll notice is a completely re-imagined flow for uploading photos and creating galleries. Media has long been a friction point and we’ve listened hard and given a lot of thought into crafting this new system. 3.5 includes a new default theme, Twenty Twelve, which has a very clean mobile-first responsive design and works fantastic as a base for a CMS site. Finally we’ve spent a lot of time refreshing the styles of the dashboard, updating everything to…