1
我想添加一个title
元素到特定页面(不是所有页面)。我正在使用Yoast,但我无法在Yoast插件上找到此页面。所以我想我必须将它添加到PHP文件头部分。但我的头部部分如下所示,我该如何添加它?如何将<title>元素添加到WordPress的特定页面上?
<?php
/**
* The template for displaying all single jobs.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WorkSt
*/
get_header(); ?>
然后在下面是HTML,例如,容器等。