WordPress页面标题有两种不同的颜色

您好,n我刚开始建立网站,需要有关我的页面标题的帮助。n我知道您可以删除页面标题并在页面正文中创建一个新标题,但是我更希望能够直接编辑页面标题。n页面标题是–Why S…Silk?n我需要\"S\"是蓝色的。n请任何人告诉我需要输入的CSS,以及我需要插入的内容和编码的位置。n下面的工作可以在页面标题之前在标题中添加\"S\",但是我需要在标题中的两个词之间添加它。n.page-id-1524.entry-标题:之前{n内容:\"S\";n颜色:#123456;n}n谢谢n你好,n您可以在WordPress管理部分更改特定页面的标题。n请查看下面的屏幕截图nhttps://prnt.sc/uw0c95n使用CSS,您可以做n.page-id-1524 .entry-title:before {content: \"S\";color: #123456;position: absolute;margin-left:275px;},请根据您的内容更改左边距。n谢谢标题可以包含HTML,因此您可以轻松地将页面标题输入为nWhy nHi Aims Infosoft & Joy,nThank you for your replies,nI found that neither of your coding worked –nI have already tried this one it doesn\"t change the letter to blue in the page title it just inserts a new letter \"before\" the page title.n.page-id-1524 .entry-title:before {ncontent: \"S\";ncolor: #123456;nposition: absolute;nmargin-left:275px;n}nI tried inserting – Why into the page CSS as well as the actual customise page title & it didn\"t work as well.nPlease if anyone has any suggestions that could help, please advise.nThank you kindlynMy solution is for the page title field, which you can\"t change in the Customizer. Are you actually talking about the site title? Site title can\"t contain HTML since it is used in many places like 标记和RSS提要以及版权文本和管理页面。n而且,HTML在CSS中不起作用。HTML可以包含内联的CSS,但是我理解。nHi Joy,nI understand,所以我是否可以转到站点的后端-通过文件管理器在那里输入?n谢谢您的好意n不。n听起来您要求的是一些行不通的东西,但您还没有澄清这是否是您真正想要的。n页面标题和网站标题是两个不同的东西。你想影响哪一个?n在编辑器中,每页的标题都会更改。它可以包含HTML。n网站标题在\"设置\">;\"常规\"或\"自定义程序\"中更改。它不能包含HTML,但是您可以使用CSS影响它在标题中的显示,或者使用自定义徽标而不是标题中的标题。(网站标题文本仍将用于其使用的其他区域,因此不要将其留空。)n如果您需要有关标题中网站标题的帮助,您应该在主题的支持论坛中询问,因为每个主题的方式不同 </article> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4239947792775398" crossorigin="anonymous"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-4239947792775398" data-ad-slot="5275133285"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="article-list"> <h2><a target="_blank" title="other/admin_action__requestaction" href="/other/admin_action__requestaction">admin_action_{$_REQUEST[‘action’]}</a></h2> <p title="do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:">do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...</p> <div title="发表日期2020-09-02 17:44:16"> <span>日期:2020-09-02 17:44:16</span> <span style="margin-left: 20px">浏览:1169</span> </div> <h2><a target="_blank" title="other/admin_footer-globalshook_suffix" href="/other/admin_footer-globalshook_suffix">admin_footer-{$GLOBALS[‘hook_suffix’]}</a></h2> <p title="do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类">do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...</p> <div title="发表日期2020-09-02 17:44:20"> <span>日期:2020-09-02 17:44:20</span> <span style="margin-left: 20px">浏览:1069</span> </div> <h2><a target="_blank" title="other/customize_save_this-id_database" href="/other/customize_save_this-id_database">customize_save_{$this->id_data[‘base’]}</a></h2> <p title="do_action( "customize_save_{$this-&gt;id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data">do_action( "customize_save_{$this-&gt;id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...</p> <div title="发表日期2020-08-15 15:47:24"> <span>日期:2020-08-15 15:47:24</span> <span style="margin-left: 20px">浏览:806</span> </div> <h2><a target="_blank" title="other/customize_value_this-id_database" href="/other/customize_value_this-id_database">customize_value_{$this->id_data[‘base’]}</a></h2> <p title="apply_filters( "customize_value_{$this-&gt;id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置">apply_filters( "customize_value_{$this-&gt;id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...</p> <div title="发表日期2020-08-15 15:47:24"> <span>日期:2020-08-15 15:47:24</span> <span style="margin-left: 20px">浏览:898</span> </div> <h2><a target="_blank" title="other/get_comment_author_url-2" href="/other/get_comment_author_url-2">get_comment_author_url</a></h2> <p title="过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610">过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...</p> <div title="发表日期2020-08-10 23:06:14"> <span>日期:2020-08-10 23:06:14</span> <span style="margin-left: 20px">浏览:930</span> </div> <h2><a target="_blank" title="other/network_admin_edit__getaction" href="/other/network_admin_edit__getaction">network_admin_edit_{$_GET[‘action’]}</a></h2> <p title="do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600">do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...</p> <div title="发表日期2020-08-02 09:56:09"> <span>日期:2020-08-02 09:56:09</span> <span style="margin-left: 20px">浏览:876</span> </div> <h2><a target="_blank" title="other/network_sites_updated_message__getupdated" href="/other/network_sites_updated_message__getupdated">network_sites_updated_message_{$_GET[‘updated’]}</a></h2> <p title="apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的">apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...</p> <div title="发表日期2020-08-02 09:56:03"> <span>日期:2020-08-02 09:56:03</span> <span style="margin-left: 20px">浏览:863</span> </div> <h2><a target="_blank" title="other/pre_wp_is_site_initialized" href="/other/pre_wp_is_site_initialized">pre_wp_is_site_initialized</a></h2> <p title="过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910">过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...</p> <div title="发表日期2020-07-29 10:15:38"> <span>日期:2020-07-29 10:15:38</span> <span style="margin-left: 20px">浏览:833</span> </div> <h2><a target="_blank" title="other/wordpress-%e7%9a%84seo-%e6%95%99%e5%ad%a6%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8%e7%bd%91%e7%ab%99%e4%b8%ad%e5%8a%a0%e5%85%a5%e5%85%b3%e9%94%ae%e5%ad%97%ef%bc%88meta-keywords%ef%bc%89%e4%b8%8emeta" href="/other/wordpress-%e7%9a%84seo-%e6%95%99%e5%ad%a6%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8%e7%bd%91%e7%ab%99%e4%b8%ad%e5%8a%a0%e5%85%a5%e5%85%b3%e9%94%ae%e5%ad%97%ef%bc%88meta-keywords%ef%bc%89%e4%b8%8emeta">WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?</a></h2> <p title="你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描">你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...</p> <div title="发表日期2020-10-03 21:18:25"> <span>日期:2020-10-03 21:18:25</span> <span style="margin-left: 20px">浏览:1721</span> </div> <h2><a target="_blank" title="other/%e8%b0%b7%e6%ad%8c%e7%9a%84seo%e6%98%af%e4%bb%80%e4%b9%88" href="/other/%e8%b0%b7%e6%ad%8c%e7%9a%84seo%e6%98%af%e4%bb%80%e4%b9%88">谷歌的SEO是什么</a></h2> <p title="SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜">SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...</p> <div title="发表日期2020-10-30 17:23:57"> <span>日期:2020-10-30 17:23:57</span> <span style="margin-left: 20px">浏览:1308</span> </div> </div> </article> <aside class="aside"> <div class="aside-box"> <section class="aphorism"> <div class="sec-panel-head"> <h2 class="h2">诗词日历 <small>古韵当轻吟</small></h2> <p class="_content"><span id="poem_sentence"></span></p> <p class="_name"><span id="poem_title"></span><br>—— <span id="poem_autor"></span></p> </div> </section> <section class="aside-2"> <div class="sec-panel-head"> <h2>感谢支持 <small>慷慨之举</small></h2> </div> <div class="slide-ad"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4239947792775398" data-ad-slot="7316216531" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </section> </div> </aside> </main> <footer class="footer"> <div class="logo"></div> <div class="text-center"> <a onclick="alert('请使用快捷键 Ctrl+D 进行添加');" title="收藏本站">收藏本站</a>・ <a target="_blank" title="站点地图" href="/sitemap.xml">站点地图</a>・ <a target="_blank" title="免责声明" href="/disclaimer">免责声明</a>・ <a target="_blank" title="发送邮件至 84051225@qq.com ,感谢反馈" onclick="copyToClipboard('84051225@qq.com');alert('请发送邮件至 84051225@qq.com ,邮箱地址已复制到剪贴板,谢谢你的反馈')">问题反馈</a> </div> <div class="text-center"> <span>©2012-2024</span> <span>晋ICP备20005987号</span> <br> </div> </footer> <script src="/assets/app.js?v=2"></script> <script src="https://wp2-cn.oss-cn-shanghai.aliyuncs.com/cdn/prism/prism.js"></script> <script> document.querySelector('.footer').style.height = '40px' </script> </body> </html>