이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Foundation Top Bar Navigation Menu

설명

The Foundation Top Bar Navigation Menu plugin allows theme developers to display a WordPress menu as a responsive Foundation top bar. The plugin includes the following core functions:

  1. A walker that applies Foundation top bar classes to a menu or page list
  2. Registration of a default “Top Bar” menu location
  3. The ability to include a basic version of Foundation that supports the top bar

Visit Zurb Foundation to learn more about the Foundation top bar and to view an example.

Usage

Download and include the Foundation framework in your theme (or load the basic version included with the plugin — see Notes below.)

Assign a new or existing WordPress menu into the “Top Bar” menu location. (or use ‘wp_list_pages’ to display a list of pages as a top bar — see below.)

Edit your theme’s templates to display the top bar menu where you’d like it to appear. Use WordPress’ ‘wp_nav_menu’ function to display the top bar menu:

<?php
if ( has_nav_menu('topbar') ) { 
    wp_nav_menu( array(
        'theme_location' => 'topbar',
        'container' => false,
        'walker' => new ftb_menu()
    ));
}
?>

A list of pages can be displayed instead of a menu using the ‘wp_list_pages’ function:

<?php
wp_list_pages( array(
    'title_li' => '',
    'walker' => new ftb_pages()
));
?>

Notes

  • The ftb_menu() and ftb_pages() walkers both accept a single ‘no_wrap’ argument. Including this argument will remove the default top bar HTML wrapper and display just the <ul> unordered list.

  • ‘wp_nav_menu() -> theme_location’ argument can be set to any registered menu area.

  • This plugin optionally includes a basic version of Foundation 5.5.2 that contains only top bar support. It is recommended that Foundation be included directly in your theme instead of using this basic version. To load the plugin’s basic version in your theme set “Load Foundation Basic in Theme” to “true” in the “Settings -> General” admin screen.

  • Visit Zurb Foundation to download Foundation and to view installation and usage documentation.

  • Default WordPress menu classes are not included in outputted top bar HTML.

Notes

Top bar styling is the default included with the Foundation framework. Some customization is possible using Foundation and/or WordPress methods, but any customizations must be implemented by theme developers.

This plugin is developed using Zurb Foundation version 5.5.2.

스크린샷

  • The “Appearance -> Menus -> Manage Locations” admin screen showing the “My Links Nav” menu assigned to the “Top Bar” theme location.
  • The “Settings – > General” admin page showing the “Load Foundation Basic in Theme” select dropdown.

설치

  1. Download and unzip the plugin file.
  2. Upload the unzipped ‘foundation-top-bar-menu’ directory to your ‘/wp-content/plugins/’ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. See “Description” for usage instructions.

후기

2017년 7월 22일
i needed a top bar on my web site and looked for everywhere. all sites were forwarding me to use css but i am not good at it that much. so this plugin is perfect to put topbar, exactly what i want. the only thing is you don’t have any options to design it but i guess i am going to edit the codes so it is more easy!
2016년 9월 3일
Great plugin, but lacks the customization of styles. Really getting in the way CSS styles.
모든 2 평가 읽기

기여자 & 개발자

“Foundation Top Bar Navigation Menu”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Foundation Top Bar Navigation Menu”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0

  • Initial release.