Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices.
He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.
View all posts by Jay Versluis →
Sometimes we need to add additional text or elements to the_content in WordPress. This can include links, icons, shout outs, author biographies, and so forth. I wanted to add an Apple Podcasts badge underneath each post in my podcast categories, adding a link to the badge, depending on the category. I’ll elaborate how I did this in a later post.
Right now, let’s have a look at how we can add elements to the content retrieved from WordPress. This should work independently of your theme, and no theme-file-hacking is necessary to accomplish this.
All we need to do is intercept the_content as it is requested, append our elements and return an amended version of the_content. Let’s see how this works.
As much as I like Amazon, UI design isn’t their strong point. They have so many links to so many things hiding in their interface that it’s difficult to find what you’re looking for at times. Your Public Profile is one of those hidden gems.
It’s a collection of all your community activity you’ve engaged in on Amazon, such as post reviews or videos, your wish lists, Spark posts, Reviewer Ranking and so forth. Here’s a screenshot of what mine currently looks like:
In this episode I’m taking a look at two lapel microphones by ZAFFIRO. They’re both called “Lavalier Lapel Microphone”, and the description is more or less identical on both items – yet there are significant differences between these products.
I bought both of them back in March 2018, and given the sound quality and amount of accessories you get, for less than $20 each, these mics are good bargains for casual users. But no matter how detailed (or vague) their shop descriptions are, and no matter how hip the people in those pictures look, you can only really judge a microphone by what it sounds like.
In this review I’ll tell you all that I’ve learnt in my six months with the ZAFFIRO lapel mics.
By default, the TwentyThirteen theme suppresses the date byline when a post is marked as Sticky (in which case, it’ll always be displayed at the top of the posts list).
That’s usually great, because Sticky Posts are often timeless announcements, and the fact that they’re a year or two out of date doesn’t look as handsome as if the date byline would simply be removed. I like this as a default behaviour.
Here’s what a default sticky post looks like, without the date displayed:
But of course, every now and again you may want to break the rules and shake up the whole universe. I did this on my iOS Dev Diary recently, where an announcement post would have been very helpful with the date displayed (I didn’t intent to keep it there for long).
So how do we bring back the date on Sticky Posts in TwentyThirteen? Let’s find out!
My wife recently got hold of an Acer Chromebook. She just got a promotion in her job, and part of said promotion was a laptop so that she can work 18 hours a day more efficiently.
The biggest question we both had less than 10 monies after switching it on was: how to we take a screenshot with this thing?
To take a full screenshot, press CTRL + F5.
To take a partial screenshot, press SHIFT + CTRL + F5. Now left-drag the area you’d like to take a screenshot of.
If your Chromebook doesn’t have F keys, look for a rectangle with two lines next to it. It’s known as the Switch Window key. It’ll most likely be the fifth key from the left in the top row, not including the ESC key. It looks like this:
Resulting files will be stored in the Downloads folder.
Let Google dazzle you with a whole host of keyboard shortcuts available for Chromebooks:
I could have sworn that when I started using Automattic’s TwentyThirteen theme over five years ago, it displayed an Author Byline in the meta description. That’s the text right underneath the title of a post, the same line that displays the post date, categories and tags.
I remember this because there were many an instance on which I had to hide that Author Byline, because on single author websites, crediting yourself over and over again just leads to a cluttered reading experience. Furthermore, if you have several tags and categories to display, the meta line can easily run over into a second line, adding to more clutter than we want to see.
Turns out that over time, the WordPress team have had a lot of feedback about the Author Byline, and it turns out that nine times out of ten, people just didn’t want to see it. So they decided to invisibilise it by default.
I’ve recently changed themes on this site, from my own development of P2 Categories to Automattic’s TwentyThirteen. P2 Categories was not mobile friendly by default, and TwentyThirteen gives all my major notebook sites a cohesive look, making maintenance easier for me.
One thing I’ve noticed about TwentyThirteen is a small bug that’s been discussed several times around the web: when no header text elements are shown (under Appearance – Customise – Site Identity), a graphical header image disappears on mobile devices. Or more accurately, when the screen width changes to anything below 767 pixels.
If a site title and description are shown, the bug does not present itself, and instead the theme resizes the header image as well as the text without issues. That’s the behaviour I’m experiencing on both my 3D Dev Diary and my iOS Dev Diary.
I did some digging and found a suitable solution for this problem. Let me share it with you here.
When you want to share a product on Amazon with someone else, the easiest thing to do is to copy whatever is in the browser bar at the time and paste that elsewhere. While this works, it’s not an efficient way to link to a product.
The URL is often extremely long and contains additional parameters that tell Amazon’s systems either how the product was found or referred, or what else to display on the current product page. Most of that additional information makes the URL longer than it needs to be.
In this article I’ll show you how to build a short and efficient link without additional parameters, such as tracking information.
All we really need is the regional Amazon domain and the ASIN of the product and add these two together, separated by the letters “dp”.
When the other party receives the link, all they have to do is click on a SUBSCRIBE or CANCEL button.
If a user is already subscribed to the channel, no message appears. If a user is not logged into YouTube, they will be prompted to do so after the above dialogue (and then they’ll subscribe to the channel).