Fixing duplication in HTML title element for WordPress with Yoast SEO installed

I was having a problem in WordPress for my blog where the title contained duplicate values, like “John’s blogJohn’s blog”.

The fix for me was to edit wp-content/themes/twentyeleven/header.php and disable a bit of the output, as shown below. I basically just added an if ( false ) to disable the code which caused the duplicate content.

This seems to effectively mean that Yoast SEO is in charge of the titles now. You can configure separately the homepage, posts, and pages titles in the Yoast SEO settings. I configure mine in Yoast SEO Settings / Content Types like this:

Homepage
Site title Separator Tagline
Posts
Title Separator Site title
Pages
Title Separator Site title
<title>
<?php
  // Print the <title> tag based on what is being viewed.
  global $page, $paged;

  wp_title( '|', true, 'right' );

// 2024-07-14 jj5 - OLD: I removed this because wp_title() (above) does everything that needs to be done.
if ( false ) {
  // Add the site name.
  bloginfo( 'name' );

  // Add the site description for the home/front page.
  $site_description = get_bloginfo( 'description', 'display' );
  if ( $site_description && ( is_home() || is_front_page() ) ) {
    echo " | $site_description";
  }

  // Add a page number if necessary:
  if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
    /* translators: %s: Page number. */
    echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
  }
}
?>
</title>

Unboxing #10: Unboxing of Ampcom Automatic Network Cable Tester | In The Lab With Jay Jay

This post is part of my video blog and you can find more information about this video over here.

You can support this channel on Patreon: patreon.com/JohnElliotV

In this video I unbox an Ampcom Automatic Network Cable Tester from AliExpress. It was a bit confusing because the AliExpress page says this is an ANENG M469D. But actually it’s not. It’s an Ampcom Automatic Network Cable Tester, which is a similar bit of kit. In the video I test this equipment with both a normal patch cable and a crossover cable and it seems to work okay, so for five bucks I’m a happy customer.

Thanks very much for watching! And please remember to hit like and subscribe! :)


Following is a product I use picked at random from my collection which may appear in my videos. Clicking through on this to find and click on the green affiliate links before purchasing from eBay or AliExpress is a great way to support the channel at no cost to you. Thanks!

JST XH2.54 6pin Pre-crimped ConnectorThis is an image of the product.

Let’s go shopping!

Old Book Teardown #8: Radio Engineering 3rd Edition (1947) | In The Lab With Jay Jay

This post is part of my video blog and you can find more information about this video on this show’s homepage.

You can support this channel on Patreon: patreon.com/JohnElliotV

Silly Job Title: Amp Alchemist

Note: this video is nearly five hours long! If you’re interested but don’t have 5 spare hours (and who does??) you might like to listen at 2x speed or more. The standard YouTube interface only supports playback up to 2x speed but I have some notes about YouTube hacks you can use to set the playback at 3x speed… or more!

In this video I teardown “Radio Engineering” (3rd edition) by Frederick Terman published 1947.

Frederick Terman was a Doctor of Science which is what the Sc.D. after his name stands for. It’s like a Ph.D. He is remembered as a father of Silicon Valley.

In the book there is much talk of diodes, but of course that is in reference to the old thermionic diodes which were vacuum tubes. These days diodes are semiconductors made from something like silicon or germanium.

The book talks a lot about power amplifier classes. Today the same classes are still used, it’s just that anything other than class AB and class D are very uncommon.

Thanks very much for watching! And please remember to hit like and subscribe! :)


Following is a product I use picked at random from my collection which may appear in my videos. Clicking through on this to find and click on the green affiliate links before purchasing from eBay or AliExpress is a great way to support the channel at no cost to you. Thanks!

Scotch Titanium ScissorsThis is an image of the product.notes

Let’s go shopping!

Interlude #7: ElectroneX 2024 Debriefing | Learning Electronics In The Lab With Jay Jay

This post is part of my video blog and you can find more information about this video on this show’s homepage which is here.

You can support this channel on Patreon: patreon.com/JohnElliotV

In this video I tell you about the SWAG (Stuff We All Get) I collected this year at ElectroneX.

I had the very good fortune to meet Dave Jones of EEVblog fame. He was nice enough to take a photo and mention my channel on X.

And as if things couldn’t get any better I then went on to meet Nicholas Vinen of Silicon Chip fame. For the record, the very first thing I ever said to Nicholas Vinen was: “is that a spectrum analyzer?” :P

I mention that the channel’s logo a version of the Hacker Emblem. There’s more info on the show’s website.

My business cards were designed by DAC Design and printed by ClickMedia.

My business card holder is this one: Business Card Holder, 1 Pcs Build in 40 Card Slot PU Leather Business Card Wallet for Credit Card, Business Cards, Men, Women (Black).

The companies who gave me SWAG that I mention in this video are:

I mention my One PCB to Ruler Them All from Adafruit which is part of my costume.

The cheap wire cutters I mention are these ones: Aokin1PC 170 Universal Pliers DIY Electronic Diagonal Side Cutting Nippers Wire Cable Cutter 3D Printer Parts Hand Tools.

As I suspected J.Burrows is a stationary brand. Must have stolen someone’s pen! Whoops! :P

You can read more about Pogo pins. I’ve never used them myself. Looking at them I’m not sure how you would mount them to a board. Lot’s of things to learn!

You can find more info about the probe tweezers I mention in the video over here: Yum Cha Probe Tweezers.

My cheapo multimeters are these ones: DT830B Digital Multimeter. My slightly less cheapo multimeter is this one: DigiTech QM1323 Multimeter. The multimeters I am saving my pennies for are these ones:

Check out the line of Peak test instruments. When I’m rich I am gonna get the full set!

My capacitor testers (and discharger) I mentioned are these ones:

You can find more about my Maxitronix Xin1 Kits. I am making videos as I work my way through them.

You can find the STM micros I showed you over here:

Thanks very much for watching! And please remember to hit like and subscribe!


Following is a product I use picked at random from my collection which may appear in my videos. Clicking through on this to find and click on the green affiliate links before purchasing from eBay or AliExpress is a great way to support the channel at no cost to you. Thanks!

FNIRSI DC580 Power ModuleThis is an image of the product.

Let’s go shopping!

New WordPress plugins for the blog

I have been rolling out CloudFront for a few of my domains, including blog.jj5.net.

In order to integrate CloudFront with WordPress I used the W3 Total Cache plugin.

And in order to set the <link rel=”canonical”> element I used the Yoast SEO plugin.

At one point I had a problem with garbled content in my browser. Looked like the browser was trying to display compressed content as text. But now I can’t reproduce, so hopefully whatever the issue was it is now fixed…

InTheLabWithJayJay.com now with RSS feed

I added RSS capabilities for InTheLabWithJayJay.com. You can subscribe to the whole thing, or just one channel, or just one show, or just one feature… it was difficulty to create the UI to support that without overcomplicating things. I made the link on the RSS icon support different feed depending on which page you are on.

Refactoring jjlab.net

I just spent two whole days refactoring and improving my jjlab.net website.

One thing I had to think very carefully about for my modeling was the class/instance distinction for various things, you can see my notes below.

So channels have shows, and shows have features.

A series has segments, and segments have a video.

A series is an instance of a show, and a segment is an instance of a feature.

Everything is easy when you know how!

John's notes about the design of his model