Wordpress 更改商业产品名称

Wordpress 更改商业产品名称,wordpress,woocommerce,Wordpress,Woocommerce,如果 test.com/shop,标题为产品| ABC 所以 test.com/shop/i_am_a_产品,标题为我是产品| ABC 现在,我想把这个标题改为我是一个产品| ABCDEF 怎么办?只需在标题中添加一些内容(将索引标题保留为ABC) 对不起,我的英语,有人能帮我吗?根据您的问题,我假设您想修改单个产品页面中的页面标题。要修改页面标题,请打开主题的header.php文件 我假设当前的标记如下- <title <?php wp_title( '|', true,

如果

test.com/shop,标题为产品| ABC

所以

test.com/shop/i_am_a_产品,标题为我是产品| ABC

现在,我想把这个标题改为我是一个产品| ABCDEF

怎么办?只需在标题中添加一些内容(将索引标题保留为ABC)


对不起,我的英语,有人能帮我吗?

根据您的问题,我假设您想修改单个产品页面中的页面标题。要修改页面标题,请打开主题的
header.php
文件

我假设当前的
标记如下-

<title
    <?php wp_title( '|', true, 'right' ); ?>
    <?php bloginfo('name')?>
</title>
<title
    <?php wp_title( '|', true, 'right' ); ?>
    <?php
        if( is_product() ){
            // use your own code here, like ABCDEF
            // this part will only show up in a single product page
        }
        else{
            bloginfo('name'); // this is the name of your website.
            // use your code to display title in all other pages.
        }
</title>
希望这可能会有所帮助

谢谢