Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arimichi/6a9f0713a2c2abc2230096f11ec0eb92 to your computer and use it in GitHub Desktop.
Save arimichi/6a9f0713a2c2abc2230096f11ec0eb92 to your computer and use it in GitHub Desktop.
<?php //モバイル用のヘッダーボタンメニューの表示 ampでも表示 tmp/mobile-header-menu-buttons.php
/**
* Cocoon WordPress Theme
* @author: yhira
* @link: https://wp-cocoon.com/
* @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
*/
if ( !defined( 'ABSPATH' ) ) exit;
if ( is_mobile_button_layout_type_header_mobile_buttons() || is_mobile_button_layout_type_header_and_footer_mobile_buttons()): ?>
<?php
if (has_nav_menu( NAV_MENU_HEADER_MOBILE_BUTTONS )) {
//モバイルヘッダーメニュー
get_template_part( 'tmp/mobile-header-custom-navi-buttons' );
} else {
//デフォルトモバイルボタン
get_template_part( 'tmp/mobile-header-default-buttons' );
}
?>
<?php endif ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment