【问题标题】:Wordpress post prev/next arrow replace I.E. rel="next">«</a> - searched high and low and can't find the code?Wordpress 发布 prev/next 箭头替换 I.E. rel="next">«</a> - 搜索高低找不到代码?
【发布时间】:2014-09-09 19:26:04
【问题描述】:

运行一个名为 WP Single Post Navigation 的插件,我已经自定义了上一个/下一个箭头的样式,但是我想用“

奇怪的是,它似乎是从一个插件文件夹文件中调用的,但我检查了所有这些文件,但它们中的任何一个(css 或 php)中都没有出现任何类型的内容:

<div id="wpspn-nextpost" title="Next post: name"> <a href="link/"
> rel="next">«</a>

【问题讨论】:

    标签: php jquery css wordpress navigation


    【解决方案1】:

    我怀疑这里的很多人都有那个插件可以搜索。所以,如果你加载了 Jquery,只需这样做 $("#wpspn-nextpost a").text("

    【讨论】:

      【解决方案2】:

      经过深入研究,我发现,正如 Wordpress 法典“有趣的字符实体”中所述:

      &raquo; » double right angle quote &laquo; « double left angle quote &lt; < single left arrow (left angle bracket) &gt; > single right arrow (right angle bracket)

      瞧!替换:`

      function wpspn_previous_post_link() {$args = array (
          'format'            => '%link',     // Link format (default: %link)
          'link'                  => '&gt;',   // Link string (default: &raquo;)
          'in_same_cat'           => FALSE,       // Apply only to same category (default: FALSE)
          'excluded_categories'   => ''           // Exclude categories (default: empty)
      );
      

      `

      【讨论】:

        猜你喜欢
        • 2011-11-10
        • 1970-01-01
        • 2012-05-10
        • 1970-01-01
        • 2012-01-29
        • 2015-01-16
        • 1970-01-01
        • 2023-01-05
        • 1970-01-01
        相关资源
        最近更新 更多