[wordpress插件] DF-PaginationDF分页

wordpress 插件 文章 2020-04-16 12:50 493 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

DF-Pagination is a simple, flexible and cool pagination plugin which provides users with better navigation on your WordPress site.

DF-Pagination是一个简单,灵活且凉爽的分页插件,可为用户提供更好的WordPress网站导航。

It has builtin ‘rel=next’ and ‘rel=previous’ markup.

它内置了“ rel = next”和“ rel = previous”标记。

In addition to increasing the user experience for your visitors, it has also been widely reported that pagination increases the SEO of your site by providing more links to your content.

除了增加访问者的用户体验外,还广泛报道了分页通过提供更多指向您内容的链接来提高网站的SEO。

Starting in version 1.0, DF-Pagination can also be used to pagination post comments!

从1.0版开始,DF-Pagination也可以用于分页发布评论!

Translations: https://plugins.svn.wordpress.org/df-pagination/I18n (check the version number for the correct file)

翻译:https://plugins.svn.wordpress.org/df-pagination/I18n(检查版本号以获取正确的文件)

安装步骤

Install and Activate

安装并激活

    1. Unzip the downloaded df-pagination zip file
    2. 解压缩下载的df-pagination zip文件

    3. Upload the df-pagination folder and its contents into the df-content/plugins/ directory of your WordPress installation
    4. df-pagination 文件夹及其内容上传到WordPress安装目录的 df-content / plugins / 目录中

    5. Activate df-pagination from Plugins page
    6. 从“插件”页面激活df分页

    Implement

    实施

    For posts pagination:

    对于分页:

    1) Open the theme files where you’d like pagination to be used.

    1)打开您要使用分页的主题文件。

    Usually this is the loop.php file.

    通常,这是 loop.php 文件。

    For older version of WordPress, you may need to update the index.php, archive.php and search.php files.

    对于旧版本的WordPress,您可能需要更新 index.php archive.php search.php 文件。

    2) Replace your existing previous_posts_link() and next_posts_link() code block with the following:

    2)用以下代码替换现有的 previous_posts_link() next_posts_link()代码块:

      <?php if(function_exists('df_pagination')){    

    df_pagination();

    df_pagination();

    } ?>

    }?>

    Configure

    配置

    1) The styles can be changed with the following methods:

    1)可以使用以下方法更改样式:

      • Add the following custom CSS to your theme’s `styles.css’ :

        将以下自定义CSS添加到主题的“ styles.css”中:

        /* Pagination */

        / *分页* /

        .pagination {
            

        .pagination {
            

        clear:both;
            

        清除:两者;
            

        padding:0 0 10px 200px;
            

        padding:0 0 10px 200px;
            

        position:relative;
            

        位置:相对;
            

        font-size:11px;
            

        font-size:11px;
            

        line-height:13px;

        line-height:13px;

        }

        }

        .pagination span, .pagination a {
            

        .pagination span,.pagination a {
            

        display:block;
            

        display:block;
            

        float:left;
            

        float:left;
            

        margin: 2px 2px 2px 0;
            

        边距:2px 2px 2px 0;
            

        padding:6px 9px 5px 9px;
            

        padding:6px 9px 5px 9px;
            

        text-decoration:none;
            

        文字修饰:无;
            

        width:auto;
            

        宽度:自动;
            

        color:#fff;
            

        颜色:#fff;
            

        background: #555;

        背景:#555;

        }

        }

        .pagination a:hover{
            

        .pagination a:hover {
            

        color:#fff;
            

        颜色:#fff;
            

        background: #3279BB;

        背景:#3279BB;

        }

        }

        .pagination .current{
            

        .pagination .current {
            

        padding:6px 9px 5px 9px;
            

        padding:6px 9px 5px 9px;
            

        background: #3279BB;
            

        背景:#3279BB;
            

        color:#fff;

        颜色:#fff;

        }

        }

下载地址
https://downloads.wordpress.org/plugin/df-pagination.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Dexs.Counter敏捷计数器
[wordpress插件] DBD Mailto EncoderDBD Mailto编码器
[wordpress插件] Business-things商业事物
[wordpress插件] Custom Related Posts定制相关帖子
[wordpress插件] Progress Bar for Contact Form 7联系表7的进度栏
随便看看
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128