web,direction,planning,graphicdesign

2011年10月28日金曜日

CSS3 グラデーション

background: -moz-linear-gradient(left top, #990,
#c36 30%,
#f60 50%,
#000 70%,
#066); /* Firefox用 */
background: -webkit-gradient(linear, left top, right bottom, from(#990),
color-stop(0.3, #c36),
color-stop(0.5, #f60),
color-stop(0.7, #000),
to(#066)); /* Safari,Google Chrome用 */


参照
http://www.css-lecture.com/log/css3/css3-gradient.html

2011年9月2日金曜日

WordPress the_excerptで文字数・文末の変更

wp-content/plugins/wp-multibyte-patchの中のwpmp-config-sample.phpをwpmp-config.phpにリネーム。
$wpmp_conf['excerpt_mblength'] = 110;を任意に変更。

function.php

文字数変更
function new_excerpt_mblength($length) {
return 20;
}
add_filter('excerpt_mblength', 'new_excerpt_mblength');

文末変更

function new_excerpt_more($more) {
return '.....';
}
add_filter('excerpt_more', 'new_excerpt_more');

wordpress TinyMCE Advancedのエディタ画面のスタイルのカスタマイズ

/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css

でスタイルを変更

/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css

331行目付近から「Formats」以下を変更
管理画面も変更可

2011年7月19日火曜日

MT で記事のないカテゴリーだけ表示させないようにする

<MTTopLevelCategories sort_by="user_custom">
<MTHasNoParentCategory>
<mt:SetVarBlock name="cat_cnt"><$MTCategoryCount$></mt:SetVarBlock>
<mt:If name="cat_cnt" ne="0">
<li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></li>
</mt:If>
</MTHasNoParentCategory>
</MTTopLevelCategories>



<$MTCategoryCount$>が0じゃない場合( ne="0")で取得できる

2011年6月13日月曜日

MT CKEditorのスタイルの追加等の方法

MTのCKEditorをダウンロード


mt-static/plugins/CKEditor/style/config.js

{ name : 'line Title' , element : 'h2', styles : { 'background-image' : 'url("イメージパス")','background-repeat' : 'repeat-x','background-position' : 'top','margin-bottom' : '16px','font-size' : '224%','padding-top' : '30px','font-weight' : 'normal' } },


スタイルを書く

フォロワー