gpt4 book ai didi

php - 无法在 WP 上的帖子标题前添加元素符号

转载 作者:行者123 更新时间:2023-11-28 08:17:42 25 4
gpt4 key购买 nike

如何在我的网站 lagatar dot com 上的健康、娱乐等不同类别的帖子标题前添加方形元素符号 [由灵活的最近帖子 (frp) WP 插件生成]

插件简码:frp_title frp_link

这是 frp 的 css 副本:

http://lagatar.com/copyof-frp-front.css

http://lagatar.com/copyof-frp-admin.css

最佳答案

如果帖子标题采用列表格式(如导航列表),请使用 list-style 方法。但是,如果文章标题是实际的标题元素,请使用 CSS :before 方法。

列表样式

您可以使用 list-style CSS 属性为您的 ul 元素设置样式。

资源

CSS-Tricks: list-style

例子

.frp-widget {
list-style-type: square;
list-style-position: outside;
list-style-image: none;
}
<ul class="frp-widget">
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>


CSS :before 属性

您可以使用 :before CSS 选择器为您的 h[0-9] 元素设置样式。

资源

HTML Entity Codes

例子

h2:before {
content: "\25A0";
}
<h2>Example Post Heading</h2>

关于php - 无法在 WP 上的帖子标题前添加元素符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28912376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com