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Aud3AtYmxvY2stdG9vbHNldC1ibG9ja3MtZ3JpZC50Yi1ncmlkW2RhdGEtdG9vbHNldC1ibG9ja3MtZ3JpZD0iNjZmMjJmYWI3YmNkZGJlN2VjYjBlNmRjN2NlZjQ4NjAiXSAgPiAudGItZ3JpZC1jb2x1bW46bnRoLW9mLXR5cGUoMW4rMSkgeyBncmlkLWNvbHVtbjogMSB9IC53cC1ibG9jay10b29sc2V0LWJsb2Nrcy1ncmlkLWNvbHVtbi50Yi1ncmlkLWNvbHVtbltkYXRhLXRvb2xzZXQtYmxvY2tzLWdyaWQtY29sdW1uPSIxMTAwYTg2YTg2ZGQxYzY5MzZkYTAzZjU0ZDg3NGE3NSJdIHsgZGlzcGxheTogZmxleDsgfSAudGItY29udGFpbmVyIC50Yi1jb250YWluZXItaW5uZXJ7d2lkdGg6MTAwJTttYXJnaW46MCBhdXRvfSAud3AtYmxvY2stdG9vbHNldC1ibG9ja3MtY29udGFpbmVyLnRiLWNvbnRhaW5lcltkYXRhLXRvb2xzZXQtYmxvY2tzLWNvbnRhaW5lcj0iYTc3MWE2MmU2NTVlNWVmMmFhNTRkMDg2ZTE0MGYxNDEiXSB7IG1pbi1oZWlnaHQ6IDBweDsgfSAgICB9IA==
WPML CMS Navigation是一个附加插件,可在创建多语言网站时提供导航元素。
该插件包含在您的 WPML Multilingual CMS软件包。
WPML CMS Navigation 插件可添加的导航元素包括
为主题添加导航元素
要使用每个元素,请使用单行 PHP 函数将它们添加到主题中。
PHP 代码 | 添加位置 | |
---|---|---|
面包屑 | <?php do_action('icl_navigation_breadcrumb'); ?> | header.php 或 single.php、page.php、archive.php、tag.php 和 search.php |
下拉菜单 | <?php do_action('icl_navigation_menu'); ?> | header.php |
侧边栏 | <?php do_action('icl_navigation_sidebar'); ?> | 侧边栏.php |
侧边栏导航也作为WordPress 小工具提供。可通过外观 → 小工具页面上的小工具控件添加。
自定义导航元素
要自定义插件的全局设置,请访问WPML → 导航。您可以调整基本设置,例如分隔面包屑线索的符号。
您还可以通过WordPress 编辑器或 CSS 进行各种定制。
1.使用WordPress 编辑器自定义导航元素
在WordPress 编辑器中编辑页面时,向下滚动找到标有 CMS Navigation.
本部分允许您自定义侧边栏的显示内容。您可以
- 排除当前页面
- 显示或不显示其子页面
- 指定显示页面的部分
2.使用 CSS 自定义导航元素的外观
导航元素带有默认外观,您可以使用 CSS 对其进行自定义。
进入../wp-content/plugins/wpml-cms-nav/res/css,找到两个文件:
- cms-navigation-base.css:它负责下拉菜单的功能,你不应该修改它。
- cms-navigation.css:这是一个您可以复制和修改的文件,用于添加您的自定义设置。
请按照以下步骤操作:
- 从插件目录中复制第二个文件cms-navigation.css,并将其放到主题目录中。
- 调用wp_head(),加载你的副本。这将加载插件的 CSS 文件。
- 在新文件中应用 CSS 个性化设置。