Enough info

WordPress theme Enough

この画面は、簡易表示です

2012 / 4月

Change from CSS @import rules to HTML link

Enoughテーマでは、style.cssの中で、@import ルールを使って、スタイルシートを呼び出しています。

これは、テーマのカスタマイズを、簡単に簡単に出来るようにするための配慮です。

しかし、インポート規則が、複数に並んでいる場合、平行してCSSが読み出せない為に、表示までに時間がかかるといわれています。

このような事柄を問題とみる、上級ユーザーのために、htmlヘッダー内にスタイルを書き出すための関数を紹介します。

functions.phpを開いて、現在の関数を、以下のように置き換えると、スタイルシートは、html headerに読み込まれます。



Bug report ver 0.26

Widget area right margin issue

Please change style rule

skin-example.css line:105

	.widget_categories,
	.widget_recent_entries,
	.widget_pages,
	.widget_nav_menu,
	.widget_recent_comments,
	.widget_archive,
	nav .widget_meta{
		border:1px solid #ccc;
		margin:.6em 0;
	}

Please change from above to below.

	.widget_categories,
	.widget_recent_entries,
	.widget_pages,
	.widget_nav_menu,
	.widget_recent_comments,
	.widget_archive,
	nav .widget_meta{
		border:1px solid #ccc;
		margin-top:-1px;
	}

This will fixed ver 0.27



Enough 0.26 ライブになりました

Enough0.26がライブになりました。

今回の変更は、コメントを許可している場合、タイトルの右脇にコメントボタンが表示されますが、その分タイトルの幅が、制約されていました。

コメントを許可していない場合には、制約をしないで、投稿幅いっぱいに表示できるように変更しました。



Enough 0.26をレビュー審査に提出

Enough0.26を本日レビュー審査に提出しました。

本日、0.25が、ライブになっていますが、0.25では、CSSファイルの再構成を行いました。

article.cssは、box-modules.cssという名前に変更しました。

フォントサイズや、フォントファミリーなど、フォント周りのスタイルを、fonts.cssに集約したりリファクタリングが中心ですが、スタイルの細かな指定も見直しました。

サイズ関係で、em,rem(CSS3)を試していましたが、マージンなどは、pxに戻した部分もあります。

全体として、安定した表示になっていると思います。

新しい、Enoughを楽しんでください



Enough 0.23 レビュー審査依頼しました

Enough 0.23をレビュー審査に提出しました。

今回は、コメントリンクが有効に働いていなかったバグの修正

見た目の、変更を含みます。

ver 0.22の見た目を維持したい場合は、以下のように、カスタマイズしてください

style.css

変更前

 /*
 Theme Name: Enough
 Theme URI: http://www.tenman.info/wp3/enough/
 Description: Default template is only index.php and comments.php. Responsive theme. Enough is simple but if you can add a template and template part file whenever if you want. IE browser ? , Yes Responsive.
 Author: Tenman
 Author URI: http://www.tenman.info/wp3/
 Version: 0.23
 Tags:white,two-columns,custom-colors, custom-header, custom-background, custom-menu, editor-style, threaded-comments, sticky-post
 License: GNU General Public License v2.0
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 */

@import url("css/normalize.css");
@import url("css/articles.css");
@import url("css/comment.css");
@import url("css/ua.css");
@import url("css/colors.css");
@import url("css/base.css");
@import url("css/layout-fluid.css");
@import url("css/skin-example.css");

以下のように修正していただければ、ヘッダー画像以外は、ver.2.2の表示になります。

変更後

 /*
 Theme Name: Enough
 Theme URI: http://www.tenman.info/wp3/enough/
 Description: Default template is only index.php and comments.php. Responsive theme. Enough is simple but if you can add a template and template part file whenever if you want. IE browser ? , Yes Responsive.
 Author: Tenman
 Author URI: http://www.tenman.info/wp3/
 Version: 0.23
 Tags:white,two-columns,custom-colors, custom-header, custom-background, custom-menu, editor-style, threaded-comments, sticky-post
 License: GNU General Public License v2.0
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 */

@import url("css/normalize.css");
@import url("css/articles.css");
@import url("css/comment.css");
@import url("css/ua.css");
@import url("css/colors.css");
@import url("css/base.css");
@import url("css/layout-fluid.css");
/*@import url("css/skin-example.css");*/


bug report

コメントリンクの動作が正常に動作しないバグがありましたので、

修正方法を説明します

comments.phpを開いてください

htmlコードは以下のようになっています

<?php
 /**
 * Comments template file for WordPress theme Enough
 *
 *
 * License: GNU General Public License v2.0
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * @package Enough
 */
?>
<ul class="wp-list-comments"><?php wp_list_comments(); ?></ul>
<br class="clear vspacer-3" />
<div class="pagenate-comment-links">
<?php paginate_comments_links();?>
</div>
<?php comment_form();?>

以下のように、div要素を追加してください

<?php
 /**
 * Comments template file for WordPress theme Enough
 *
 *
 * License: GNU General Public License v2.0
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * @package Enough
 */
?>
<div id="comments">
<ul class="wp-list-comments"><?php wp_list_comments(); ?></ul>
<br class="clear vspacer-3" />
<div class="pagenate-comment-links">
<?php paginate_comments_links();?>
</div>
<?php comment_form();?>
</div>

このバグは、次回 ver 0.23 で修正予定です



bug report

PHP5.3以上をお使いの環境で、enoughテーマを使った場合で、エラーを表示する設定になっている場合、エラーが表示される事があります。

その場合、以下のURLから、対策用の、functions.php のコードを入手する事が出来ますので、ご利用ください

functions.phpの修正コード

さらに、0.21では、メニューが正常に動作しない不具合もあります。

上記のURLのコードを利用していただく事で、メニューも利用できるようになります。



このバグを修正した ver0.22は遅くても、今週中にレビュー審査に提出する予定です。




top