AI助手支持GPT4.0
This plugin adds classes or IDs (your choice) to the LI tags generated by WordPress' wp_list_pages() and wp_nav_menu() functions
LI
wp_list_pages()
wp_nav_menu()
此插件将类或ID(由您选择)添加到WordPress的 wp_list_pages() code>和 wp_nav_menu() code>函数生成的 LI code>标记中. p>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() code>和 wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
wp_list_pages() code>和 wp_nav_menu() code>函数生成的 LI code>标记中. p>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() code>和 wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
wp_nav_menu() code>函数生成的 LI code>标记中. p>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() code>和 wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
LI code>标记中. p>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() code>和 wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
.
p>
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() code>和 wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
wp_list_pages() code>和 wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
wp_nav_menu() code>的输出样式。 p>The class name or ID is derived from the URL of the page.类名或ID是从页面的URL派生的。 p>For example,例如, p>/about/ could have the class about. / about / code>可以具有类 about code>。 li>/about/faq/ could have the class about_faq. / about / faq / code>可以具有类 about_faq code>。 li> ul>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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
The class name or ID is derived from the URL of the page.
类名或ID是从页面的URL派生的。 p>
For example,
例如, p>
/about/
about
/ about / code>可以具有类 about code>。
about code>。
li>
/about/faq/
about_faq
/ about / faq / code>可以具有类 about_faq code>。 li>
about_faq code>。 li>
ul>
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 code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
class
id
如果页面没有URL(例如,首页),则插件会将 class code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.首页 code>,添加您要求的任何前缀。 p>For example,例如, p>/ could have the class pg_frontpage. / code>可以具有类 pg_frontpage code>。 li> ul>Existing classes (e.g. page_item or current) are left untouched.现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
如果页面没有URL(例如,首页),则插件会将 class code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.
class code>或 id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.
id code>(取决于您选择的内容)设置为frontpage, adding whatever prefix you requested.
frontpage
首页 code>,添加您要求的任何前缀。 p>
/
pg_frontpage
/ code>可以具有类 pg_frontpage code>。
pg_frontpage code>。
Existing classes (e.g. page_item or current) are left untouched.
page_item
current
现有类别(例如 page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
page_item code>或 current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
current code>)保持不变。 p>Sample output样本输出 h4>A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li> code> pre>Configuration配置 h4>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 code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
A new page“ title =”一个新页面“>一个新页面 li>About 关于 li >>Another new pagepage“>另一个新页面 li>
“ title =”一个新页面“>一个新页面 li>
>
page“>另一个新页面 li>
code> pre>
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
使用选项面板中的 Classy wp_list_pages code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
Classy wp_list_pages code>标签,您可以选择是否要使用ID或类,设置令牌分隔符并添加可选的令牌前缀。 p>You can also specify a class to add to the first and last items in a list.您还可以指定要添加到列表中第一项和最后一项的类。 p>Pretty straight forward…挺直的…… p>Contact and Credits联系人和积分 h3>Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年-09.-09。 p>
You can also specify a class to add to the first and last items in a list.
您还可以指定要添加到列表中第一项和最后一项的类。 p>
Pretty straight forward…
挺直的…… p>
Written by Alex Dunae ( dunae.ca ), e-mail 'code' at the same domain), 2007
由Alex Dunae( dunae.ca )撰写,同一域中的电子邮件“代码”),2007年
-09.
-09。 p>
classy_wp_list_pages.zip
/wp-content/plugins/
在 / wp-content / plugins / code>目录中解压 classy_wp_list_pages.zip code>。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Navigate the the Classy wp_list_pages tab in the options panel to configure the plugin.导航选项面板中的 Classy wp_list_pages code>标签以配置插件。 li>
/ wp-content / plugins / code>目录中解压 classy_wp_list_pages.zip code>。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Navigate the the Classy wp_list_pages tab in the options panel to configure the plugin.导航选项面板中的 Classy wp_list_pages code>标签以配置插件。 li>
classy_wp_list_pages.zip code>。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Navigate the the Classy wp_list_pages tab in the options panel to configure the plugin.导航选项面板中的 Classy wp_list_pages code>标签以配置插件。 li>
Classy wp_list_pages code>标签以配置插件。 li>
ol>
原文出处:http://www.sanshu.cn/a/7397.html
群主管理都是支付大佬