concept-image/wp-base-nav 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

concept-image/wp-base-nav

最新稳定版本:1.0.5

Composer 安装命令:

composer require concept-image/wp-base-nav

包简介

A package to add a simple component to call wp_nav_menu as a component with options.

README 文档

README

WP Base Nav is a Composer package that provides a simple component to call wp_nav_menu as a component with options.

Installation

You can install the package via Composer:

composer require concept-image/wp-base-nav

Then install the base nav with wp :

wp acorn vendor:publish --tag="wp-base-nav"

Usage

To use the WP Base Nav component, you can call it in your theme files like this:

<x-layouts.base-nav
    theme_location="main-nav"
    container_class="py-2"
    depth="2"
    />

And then you can style the nav element with @apply of Tailwind CSS.

If you need more advanced manipulation on your nav, you can create your own component that extends the BaseNav component.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss what you would like to change.

License

This package is open-sourced software licensed under the MIT license. Please see License File for more information.

统计信息

  • 总下载量: 728
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-16