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.
We needed to put a data privacy footer link on all our rampages sites. To do that I added this code in our generic network activated plugin. Then we realized we’d need to skip that occasionally for particular sites and that’s why we ended up adding a loop to skip sites by ID. It could be fancier and enqueueI cannot spell this word. scripts etc. rather than just stapling them in but the pattern’s likely to be useful to others wandering in the darkness.
I got an email from a professor who was using Gravity Forms to allow students to create blog posts. The problem was that when they submitted posts via the form the category ended up being the default category no matter what was selected. Here’s a few of the things I did trying to figure out what was going on. It’s just a matter of isolating variables but occasionally it’s helpful to see how people work through this sort of thing. First, I googled it but that well was dry.I’ll try to keep the language interesting. I made sure the Gravity Forms category selection worked on other sites on the same installation. It did. That let me know it was at least blog dependent. There were only two other plugins active. They were both turned on and off with no change. That meant no plugin conflicts. On the input side, I tried selecting multiple categories. No dice. I tried changing the default category. It change the default category but didn’t fix the issue. I couldn’t think of any more input based variables to mess with so I moved a bit deeper into things. On the form side, I tried changing the category selection options. I tried using checkboxes, multiple select, all categories, select categories etc. None of that made any difference. […]
If you use Advanced Custom Fields you may not realize it removes the ‘Custom Fields’ option from your Screen Options view and hides them entirely in the space they normally occupy below your posts/pages. That’s nice occasionally and a pain other times. Today it was a pain. I figured this out one time before but it took me a while to re-find it at this github page so I’m leaving it here in case I forget again.