Warning: The magic method Visual_Form_Builder::__wakeup() must have public visibility in /home/xsvx1010357/kato.space/public_html/wp/wp-content/plugins/visual-form-builder/visual-form-builder.php on line 68

Warning: The magic method Visual_Form_Builder_Form_Display::__wakeup() must have public visibility in /home/xsvx1010357/kato.space/public_html/wp/wp-content/plugins/visual-form-builder/public/class-form-display.php on line 35
WordPressの管理バー・ツールバーの位置を下に変える。 – 加藤電業社

WordPressの管理バー・ツールバーの位置を下に変える。

WordPressはログインしているとページ上部に編集バーが出る。
また管理画面上でも出すか出さないかできるが凄く邪魔。
div クラス wpadminbar

http://kato.space/wp/wp-includes/css/admin-bar.min.css

#wpadminbar {
    direction: ltr;
    color: #ccc;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    height: 32px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 600px;
    z-index: 99999;
    background: #23282d;
}

 

トップの時だけ、下に落とす

参考:http://www.02320.net/wp_admin_bar_to_the_bottom/

// ツールバー、トップ画面は下に表示
function oz_admin_bar_to_the_bottom() {
	
if ( is_home() ) {
  echo '<style type="text/css">
  #wpadminbar {
    top: auto !important;
    bottom: 0;
  }
  </style>';
	}	
	}
add_action( 'wp_head', 'oz_admin_bar_to_the_bottom' );

 

 

投稿者 kato

これはテスト画像ですよ。テストです。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA