Currently creating a web page with Wordpress.
The title is entered as "XXXXX" in the general settings, and the tagline is empty.
Currently, when you look inside the browser tab of Chrome etc., it becomes "XXXXX |" and the vertical bar cannot be taken.
I didn't include all in one SEO, so I thought it would be enough to change the general settings. Is there anything else I need to do?
It can be a useful site, so please let me know the appropriate method.
-
Answer # 1
-
Answer # 2
If the title tag is directly written as asuchi0819 says,
If the old theme seems to have been output with wp_title (), delete the pipe as shown below
php wp_title ('|', true, 'right');?> php bloginfo ('name');?> ↓php wp_title ('', true, 'right');?> php bloginfo ('name');?> -
Answer # 3
Maybe
add_theme_support ('title-tag');
This is the type of theme that will be used in the title, or basic after WP4.4This delimiter is filtered and defaults to '-'
If '|' appears, it should already be filtered
Priority with overriding priorityadd_filter ('document_title_separator', function () {return '';}, 100);
Appendix
add_theme_support ('title-tag'); If document_title_separator doesn't work
You may have created your own title with pre_get_document_titleIn this case, the title structure depends on the theme
How do you find the pre_get_document_title filter in the theme? -
Answer # 4
It's not a fundamental code clarification, but if you use the Lightning theme,
It can be changed from the plug-in of "VK All in One Expansion Unit" recommended to install at the same time.
First, from the "VK All in One Expansion Unit" menu
Check the "Rewrite title tag" checkbox in "ExUnit".Next,
If you select "Top Pagetag" from "Main Settings" and save your favorite text in the input form, you can make the title without "|". Or, if UxUnit is checked,
The other way of dealing with the description in function.php may work.
wp-content/themes/Your theme name/header.php
Remove "|" from
If not, please tell me along with the theme name.
Please copy and paste the following at the bottom of functions.php.