WordPressテーマ作成でハマった件
WordPressテーマ作成の黙示録的なものです。
ハマったら更新していきます。
テーマ名
はい、いきなりハマりました。
_と数字はダメです。
テーマのタグ
勝手に設定したらダメです。
下記の「Feature Filter」に表示される中から選びます。
https://wordpress.org/themes/
知らないstyle
知らないstyleが指定されていて、コメントウィジェットの表示が崩れる問題が発生。
調べてみると .recentcomments の style が勝手にインラインで入っている。しかも !important 付きvip待遇。
functions.php で、wp_head をフックして削除。
php
function remove_recent_comments_style() {
global $wp_widget_factory;
remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style'));
}
add_action('widgets_init', 'remove_recent_comments_style');
Bootstrap対応
Bootstrap対応のWordPressテーマ作成が簡単じゃなかった件
http://blog.lqd.jp/cms/001020.html
jQuery
To Be Continued...
作ったテーマはこちらで配布しています。
https://lqd.jp/wp/