CSS for Resizing Video
Just a handy chunk of CSS to make your video embeds behave better. It’s out there but not a bad thing to spread farther.
Here’s a quick video of a browse-by-color example I made in about ten minutes this AM prior to a meeting with a faculty member in our fashion program. This one is using FacetWPYou could easily do this by hand now with the WP JSON data but it’d take a bit longer. which is acting on a custom field I creatively named ‘color.’ It seems like it’ll be useful to some disciplines and we have the option to do lots of automated patterns using Color Thief to grab pallets. The video is also one way we might start sharing examples of what we can do in various platforms. There’s significant need to show that internally and for external faculty so people get a better idea of their scope of options.
I often get requests from instructors that ask me to get WordPress to behave in a way that’s just different enough that WordPress fights them. Now that I can mostly program, I could make quick child themes to deal with this but that causes me the hassle of keeping all that stuff straight so I still do some quick and dirty stuff with plugins. This example is based on an instructor who wanted one particular category (lesson plans) to list from oldest to newest rather than the default WP blog layout of newest to oldest. That’s a pretty easy thing to do if you use the List Category Post plugin. Once you’ve got the plugin on and you’ve found the category id (mouse over the category when you’re in Dashboard>Categories and look for id= in the URL at the bottom of the page) all you need to do is put in [catlist id=9 numberposts=-1 order=asc] In this case, it says get the posts in the category with id 9, -1 means get all of them, and order them from lowest to highest/ or oldest/newest. That’s it. I’ve now got a page that shows all 41 lesson plans from oldest to newest and no child theme to keep track of.
I do a fair amount of Gravity Forms to posts. Many times those posts have files, mainly images, associated with them that I’d like to have embedded in the post. Gravity Forms did some changes a while back to prevent people from guessing where files are (which is good) but the secure URL change also made my embed patterns break. Throwing the little line above in a plugin makes things work again (although at the risk of people guessing where other files may reside).