[wordpress插件] Plugin Name: Classy wp_list_pages插件名称:Classy wp_list_pages

wordpress 插件 文章 2020-03-24 08:30 444 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin adds classes or IDs (your choice) to the LI tags generated by WordPress' wp_list_pages() and wp_nav_menu() functions

此插件将类或ID(由您选择)添加到WordPress的 wp_list_pages() wp_nav_menu()函数生成的 LI 标记中

.

I found it very frustrating to style the output of these menus without having access to these attributes.

我发现在不访问这些属性的情况下对这些菜单的输出进行样式设置非常令人沮丧。

This plugin allows you to style the output of wp_list_pages() and wp_nav_menu() with CSS.

该插件可让您使用CSS设置 wp_list_pages() wp_nav_menu()的输出样式。

The class name or ID is derived from the URL of the page.

类名或ID是从页面的URL派生的。

For example,

例如,

    • /about/ could have the class about.

    • / about / 可以具有类 about

    • /about/faq/ could have the class about_faq.
    • / about / faq / 可以具有类 about_faq

    If a page does not have a URL (eg your front page) the plugin will set the class or id (depending on what you selected) to

    如果页面没有URL(例如,首页),则插件会将 class id (取决于您选择的内容)设置为

    frontpage, adding whatever prefix you requested.

    首页,添加您要求的任何前缀。

    For example,

    例如,

      • / could have the class pg_frontpage.

      • / 可以具有类 pg_frontpage

      Existing classes (e.g. page_item or current) are left untouched.

      现有类别(例如 page_item current )保持不变。

      Sample output

      样本输出

      “ title =”一个新页面“>一个新页面

    • 关于

      >

      >

    • page“>另一个新页面

      Configuration

      配置

      Using the Classy wp_list_pages tab in the options panel you can choose whether you want to use IDs or classes, set the token separator and add an optional token prefix.

      使用选项面板中的 Classy wp_list_pages 标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。

      You can also specify a class to add to the first and last items in a list.

      您还可以指定要添加到列表中第一项和最后一项的类。

      Pretty straight forward…

      挺直的……

      Contact and Credits

      联系人和积分

      Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007

      由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年

      -09.

      -09。

安装步骤

    1. Unzip classy_wp_list_pages.zip in your/wp-content/plugins/ directory.
    2. / wp-content / plugins / 目录中

    3. 解压 classy_wp_list_pages.zip

    4. Activate the plugin through the ‘Plugins’ menu in WordPress.
    5. 通过WordPress中的“插件”菜单激活插件。

    6. Navigate the the Classy wp_list_pages tab in the options panel to configure the plugin.
    7. 导航选项面板中的 Classy wp_list_pages 标签以配置插件。

下载地址
https://downloads.wordpress.org/plugin/classy-wp-list-pages.1.4.0.zip
-EOF-

AI助手支持GPT4.0