作者文章

Chris Coyier

创始人、作者、设计师、垃圾邮件删除者、电子邮件个性化

文章“Prefixr”的直链

Prefixr

Jeffrey Way 创建了一个应用程序,可以浏览您的 CSS 并添加所有缺少的 CSS3 供应商前缀。无论您添加或遗漏了哪些前缀,它都足够智能地正确执行此操作。更酷的是,它有一个 API,可以……

文章“为 next_posts_link 和 previous_posts_link 生成的链接添加类”的直链

为 next_posts_link 和 previous_posts_link 生成的链接添加类

这两个函数创建锚链接,您可以自定义很多内容,但仅通过使用它们的参数就无法添加类。必须向 functions.php 添加一个函数。

add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');

function posts_link_attributes() {