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条)

报告相同问题?

悬赏问题

  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)