Last updated: November 20, 2023 at 7:59 PM
The WordPress SEO plugin hpbseo provided by JustSystems homepage builder (hpb) stopped working in the WordPress 6.0 environment, so I switched to the SEO plugin Yoast SEO, which has the highest user evaluation in the world.
Unfortunately, hpbseo is a minor plugin, so it is not possible to import the Meta data (meta description/meta keywords) set in hpbseo.
So, in this article, we'll show you how to migrate from hpbseo to Yoast SEO in a simple way.
Implementing Yoast SEO
Yoast SEO Is a search engine optimization (SEO) plugin for WordPress in the Netherlands A company called Yoast Is developing.
The plugin has over 5 million active installs and has been downloaded over 350 million times on Wordpress.org with over 25,000 5-star reviews.
Before introducing Yoast SEO, as a prerequisite, we will try to transcribe the meta description of the existing article to the excerpt of the post as much as possible. Otherwise (excerpt not filled in), it will be a quote from the article.
The number of characters in the excerpt is by default 55 words, for multibyte characters such as Japanese 110 characters It has become. However, for Japanese excerpts to work well,WP Multibyte Patch Plugin must be enabled.
The number of characters in this excerpt can be changed in the settings. If you want to set it to 120 characters, add the following line to the theme's program functions.php as shown below.
/* 抜粋の表示文字数を120文字に変更
---------------------------------------------------------------- */
function edit_excerpt_mblength($length)
{
return 120;
}
add_filter('excerpt_mblength', 'edit_excerpt_mblength');
By the way, according to the results of a survey conducted in 2020, most search engines recommend that excerpts be 109 full-width characters or less, so I think it's a good idea to set this to 109 characters.
Then there's the issue of meta keywords.
In fact, crawlers of major search engines such as Google and Bing have already stopped collecting meta-keywords.
Therefore, it is judged that the setting of meta keywords has low SEO effect, and the setting of meta keywords has been eliminated in both Yoast SEO and All in One SEO.
Therefore, we will ignore the meta keywords set in hpbseo.
Installing Yoast SEO
Yoast SEO includes SEO analysis, SEO title generation, Meta tag generation, schema.org markup generation (LD+JSON), XML sitemap generation, Facebook Open Graph metadata generation, Twitter card metadata generation, etc. contains the functionality of
However, some of those features may overlap with the theme's programs or installed plugins.
Therefore, in order to centralize these functions, it is necessary to disable (uninstall) plugins and screen the functions by setting Yoast SEO.
Yoast SEO has a function to output structured markup to WordPress posts and fixed pages using schema.org, a structured data definition vocabulary, in JSON-LD (JSON for Linking Data) syntax. Generate" comes standard.
Therefore, there is no need for the plug-in "Markup (JSON-LD) structured in schema.org" with similar functions.
First, disable (and later uninstall) the following plugins with duplicate functionality, then install Yoast SEO and proceed to the following configuration steps.
- hpb seo plugin for WordPress ... SEO Plugins
- Markup (JSON-LD) structured in schema.org ... schema.org Markup generation
Configuring Yoast SEO
The Yoast SEO settings for the feature screening described above are as follows:
- General: Feature ≫ XML Sitemap ⇐ set to on or off
If you have installed the Google XML Sitemaps plugin and want to use it, set it to Off.
On our site,Google XML sitemaps was using, but in Google Search Console Google XML sitemaps When I loaded the generated sitemap, an error occurred, and several trouble occurred that could not be loaded, so I set Yoast SEO to generate XML sitemap.
In that caseDisable (uninstall) the Google XML Sitemaps plugin.
The XML sitemap created by Yoast SEO is created with the following file name,Google XML sitemaps If is invalid,robots.txt Even if it is defined as '/sitemap.xml' in , you will be automatically redirected to the following URL:
⇒ /sitemap_index.xml
- How it looks in search: Content Types ≫ Blog ⇐ Set meta description to "excerpt"
Variable "%%excerpt%%Enter "
- How search looks: Breadcrumbs ≫ Enable breadcrumbs for themes ⇐ Enabled
If you are using hpb22, or if you are using the breadcrumbs generator breadcrumb.php with a theme diverted from hpb22, the breadcrumbs will be output in the schema.org format of the structured data definition vocabulary. increase.
So in that case, you don't need the output from Yoast SEO, so enable the theme's breadcrumbs.
- Social: Facebook Settings ≫ Add Open Graph metadata ⇐ Set to Disabled
The social_buttons.php program that displays social buttons in the dashboard plugin of the homepage builder theme outputs Open Graph metadata for Facebook, so Yoast SEO disables the output.
The gallery below is the Yoast SEO dashboard for the above settings.
Yoast SEO behavior on the edit screen
The following galleries are the Google preview screen with Yoast SEO (left) and the Yoast SEO management screen (right) that appear at the end of the article editing screen in the block editor.
In this setting, the definition of the meta description is excerpted.