How to display the Category Title and Description in the Page Hero with GeneratePress
I’ve not had the best of luck adding the Category Title with the GeneratePress shortcuts in the Page Hero (the ones using the {{curly}} braces). There’s no shortcut for the description either, so I thought I’d write my own and show you how I did it. First I’ve created two regular WordPress shortcuts for the category title and description, then called them from the Elements section in GeneratePress. Here’s the code for the shortcuts: // Archive Title in Page Hero add_shortcode( 'archive_title', function() {...
read moreWhere is the WordPress is_blog() Function
There appears to be a conditional function sorely missing from WordPress Core. We can test if we’re currently on a single post using is_singular(), or if we’re on a page using is_page() or if we’re on the home page with is_home(), and so forth. Sadly we cannot test if the current page is in fact displaying the blog with something like is_blog(). I wanted to test this condition and display a special layout if true, so I had to write my own. Turns out you’ll have to test for quite a few cases to make this foolproof....
read moreHow to embed your latest YouTube Video with responsive CSS
I’ve recently had to update the code that’s responsible for pulling in my latest YouTube upload on the front page. I had previously used a solution that uses the channel name rather than the channel ID. Apparently that API has stopped working and I had to find a workaround. In addition to making it work again, I also wanted my embed to be responsive and look handsome on all screen sizes. The trouble is that regular iFrame embeds use a static size for the video (like 600×360 or 800×480), but being the future-proof...
read moreRemoving the Link Menu Item in WordPress Admin
Remember the Links Manager in WordPress? This was an option for us to add a custom post type or “link” in the admin interface, so that we could easily link to other websites as something popularised as a Blogroll. Nowadays it’s a somewhat outdated term, and for that reason the whole Links Manager component was hidden by default in WordPress 3.5 back in late 2012. The component is still built into WordPress though and won’t show up by default on newer installations. Older installations that have been continually updated...
read moreFixed: EPIC Games show as “unavailable” in the launcher
I’ve had a small issue with the EPIC Games Launcher more and more recently. Some of my games (usually the un-installed ones) show up as being unavailable. Tell me if you’ve seen this before: This has started happening as for the last four weeks I’d say. I’ve started moving some of my games over to a hard driver other than C, and the size of my library has gradually been increasing if it makes a difference. At first glance it looks like there might be a problem with the game, as if it had been removed from sale. EPIC...
read moreHow to enable the integrated Search Option in GeneratePress
I keep forgetting where and how to enable the integrated top level search function in the GeneratePress Theme. I had found it once and it made perfect sense, but when I installed the theme on a new site I had forgotten where that option is hiding. It’s in the WordPress Theme Customiser under Layout – Primary Navigation – Navigation Search. Thought I’d make a note here so I know where to look next time
read moreCan you use a regular Mic to USB adapter with the GoPro HERO 5/6/7/8?
I have a fairly popular video on how to use the GoPro Microphone Adapter on my channel, and due to its high view count, I get a lot of questions on it. The most popular question relates to why we have to use the large and expensive adaptor in the first place. It sells for $50 or $80, if it’s in stock, and it stands to reason that a cheaper alternative for around $10 might do the trick. I’ve answered the question about 20 times already, so to save myself and my viewers some time, I thought I’d draft a thorough response here....
read moreHow to specify a resolution when connecting with NoMachine
I control most of my local computers around the office with NoMachine. It’s the only client that lets me start several GUI heavy apps from the command line without running into some type of issue (like OpenGL driver shenanigans). You can download it from NoMachine.com for free, and I absolutely love it. One thing that’s been bugging me though is that when I connect, the resolution of my source monitor is always matched on the client. In my case, that’s a 2K monitor on my Mac, and the resolution is a whopping 2560×1440....
read moreHow to play Geometry Wars: Retro Evolved in 1920×1080 (Steam)
I’ve just picked up a copy of Geometry Wars: Retro Evolved on Steam. I used to love this twin-stick arcade shooter since I first discovered it in Project Gotham Racing. I had the Xbox 360 version too, and haven’t thought about it for many years. I didn’t even know it was available on Steam until today, and picked up a copy for $1.99 – happy memories! I browsed through the resolution options pretty much immediately, since the game comes up with a default of 640×480, which is a tad low for today’s screens. By...
read moreGetting Started with Streaming – An Overview
I’ve been meaning to put this quick guide together, with helpful bits of equipment and software that you need to get started in the world of streaming. I also wanted to explain the principles in a not-too-technical way. Here’s what I’ve come up with! This guide includes some philosophy, general tips, some basic kit suggestions, as well as “extra credit” optionals with affiliated links to the products I’m talking about. I hope you get some information out of this list! If you have any questions, feel free to...
read more