運営中の 3カラム WordPress サイトで、ウィジェット(widget)の h2 を h3 に変更してるのですが、wp-includes の widgets.php を編集する方法で対応していたので、これを functions.php でやるようにカスタマイズしました。 functions.php でh2 を h3 に変更サイドバーは sidebar.php と sidebar2.php の2つ用意。 sidebar.php の記述 <div id="sidebar"> <ul> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?> <?php endif; ?> </ul> </div>sidebar2.php の記述 <div id="sidebar2"> <ul> <?php i
![functions.phpを使い3カラムのサイドバーウィジェット(widget)をh2からh3に変更 | 愚者の紋章 -The Fool-](https://cdn-ak-scissors.b.st-hatena.com/image/square/ea63ca37d924b62a0549d12ea7ab6462110ce678/height=288;version=1;width=512/http%3A%2F%2Fthe-fool.me%2Fwp-content%2Fuploads%2F2010%2F07%2Fb9d04041f1719075cf5e50dd7d3174e9.jpg)