Quick Tip: Turn off Amazon Wishlist Spoilers

Posted on

While talking to my mother, whom I sent my Amazon Wishlist to for gift ideas, she told me to not check Amazon until Christmas because she bought stuff off of my list and didn’t want me to see what she got. Luckily, Amazon has thought of this, and there is a really simple way to make sure that you don’t see when people buy things off your list.

  1. Go to your Amazon Wish List.
  2. In the List Actions drop-down (towards the top of the list, on the right), click Update list profile.
  3. Check  “Don’t spoil my surprises.”
  4. Click Save.

That’s it! You can now view your list without worry of spoilers.

GitGutter for Sublime Makes Diffs Easy

Posted on

At Crowd Favorite we use git for everything, which is a nice change from my old workflow of hoping for the best. I’ve learned quite a bit about git and Github since starting and have looked for tools to help me do things better. A really simple, but super helpful, tool is the GitGutter package for Sublime (thanks Dave!)

It’s very straight forward: when you add, change, or delete a line, it will put small icons in the gutter of your file, with the line numbers, to make it easier for your to spot where you made modifications. It doesn’t seem like much, but I definitely miss it when I’m using a different editor or machine. Check it out!

GitGutter for Sublime

Quick Tip: Check to See if a Slug Exists in WordPress

Posted on

Recently I was doing some work where I was importing RSS entries into a Custom Post Type in WordPress. Since there were no common IDs between the feed and WordPress, to prevent duplicate entries I tried comparing titles. This also proved to be an issue as titles aren’t always unique, and they weren’t in this case. I settled on comparing slugs; WordPress creates a unique slug for each post from the title, and there’s a way to know what that slug is going to be before the post is added.

Continue reading “Quick Tip: Check to See if a Slug Exists in WordPress”

Quick Tip: Use Post or Page Slug as CSS Class in WordPress

Posted on

I don’t know why, but for some reason, I thought WordPress already included the slug of a post or page in either the function body_class() or post_class(). Doing some work over this weekend I realized that’s not the case, but luckily, it’s very easy to do.

The functions body_class() and post_class() serve as a way for you to easily customize a page’s CSS based on attributes of the page being viewed. They will output things like the post ID, the custom post type, if the page is the blog, home, or front page, and more. One thing it does not include, however, is the post slug. This could be useful if you want to style each of your posts a certain way, or in a more likely scenario, style each page a certain way. If you want to do this, the code is fairly straight forward; both functions accept an option argument: a string of your own classes. We use that combine with the $post array, like so:

<?php body_class($post->post_name); ?>

or, if you want to do it on a post-by-post basis:

<?php post_class($post->post_name); ?>

Note the latter must be used inside the Loop. Using this, if you have a page named, “Services” with the slug services, the output would look something like this:

<body class="page page-id-108 page-parent page-template-default services">

Now you can use the .services (or whatever) class name to do some custom stuff instead of needing to know the page or post ID.

 

Quick Tip: Use an Icon with Responsive-Nav.js an Icon Font

Posted on

Responsive Nav is a really nifty (and light-weight) Javascript plugin that will allow you to easily create an off-canvas navigation menu that slides down from off the screen. Here’s a quick and easy way to use an icon instead of your run of the mill plain text.

Continue reading “Quick Tip: Use an Icon with Responsive-Nav.js an Icon Font”

Quick Tip: Download an Archive of your Facebook Data

Posted on

There’s a lot going on on the Internet right now. Websites getting hacked (Blizzard being the most recent), companies doing presumably whatever they want with our data, and the cultivation of a group of people who over-share (this includes yours truly). I’ve written a bit on Facebook and other social media and how I think it’s affecting our culture. What I haven’t seen a lot of is writing on what’s called, “Data Liberation.” This is, retrieving your data from the social networks you use so often.

Continue reading “Quick Tip: Download an Archive of your Facebook Data”

WordPress Multisite Domain Mapping on Media Temple (dv)

Posted on

I recently stood up a WordPress Network/Multisite that I wanted to use for several different client “Quick Sites” – simple WordPress sites I offer that don’t require a lot of customization. I thought my steps were simple; install WordPress Multisite and then get top-level domain mapping working. The latter was not as easy as I thought it would be because different hosts handle this in different ways. Here I’ll give you the steps for doing it on a Media Temple Dedicated Virtual Server (dv).

Continue reading “WordPress Multisite Domain Mapping on Media Temple (dv)”

Quick Tip: How to Un-shrink a Sweater

Posted on

So this isn’t really tech related, but I’m a guy and not a very bright one at that. Last week a bought a new sweater, wore it out over the weekend and had to wash it. I of-course ignored the dry-clean only label and my brother’s warning and threw it in with the rest of the clothes. The result is that it was about 3 times smaller. Luckily I took to the Internet and found this awesome site, detailing how to un-shrink the sweater.

  1. Soak the sweater in warm water with a mild soap for about 10 minutes.
  2. Lay the garment out on some towels in a cool place (I hung it up on a hanger).
  3. Stretch the sweater out to its original size.
  4. Allow it to dry.

The website explains in a little more detail the whys, but I tried this and it worked. If you try it, good luck! Let us know in the comments if it works. Other tips are also welcomed!