dongzhuo0895 2015-03-07 07:08
浏览 7
已采纳

无法在WP上的帖子标题之前添加项目符号

How to add square bullets before post title [generated by flexible recent post (frp) WP plugin] on different categories like health, entertainment, etc on my site lagatar dot com

Plugin shortcode: frp_title frp_link

Here's the css copy of frp:

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

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

  • 写回答

2条回答 默认 最新

  • duanqinbi9029 2015-03-07 07:26
    关注

    If the post headings are in a list format (like in a navigation list) go with the list-style method. But if the post headings are actual heading elements, go with the CSS :before method.

    List-Styles

    You can style your ul elements with the list-style CSS property.

    Resource

    CSS-Tricks: list-style

    Example

    .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 Property

    You can style your h[0-9] elements with the :before CSS selector.

    Resource

    HTML Entity Codes

    Example

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

    </div>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)