‘カスタマイズ’ タグのついている投稿

WordPressで新着情報を表示するプラグインCustomizable Post Listingsのタグ改変

2009 年 5 月 9 日 土曜日

Customizable Post ListingsはWordPress標準関数の新着情報表示が他プラグインと干渉を起こした時に回避するにも最適なプラグインだが、デザイン上、<li>が入るとやや問題がある場合がある。その時はプラグインそのものを改変。

606行目の$format = "<li>%post_date%: %post_URL%</li>"を$format = "%post_date%: %post_URL%"と変更。
<li>が邪魔くさい場合に、606行目を入れ替えればOK。もちろん、これは、テンプレートでfunction c2c_get_recent_postsを呼び出している場合。
function c2c_get_random_postsを使う場合は、700行目を変更…というように呼び出したい関数部分を変更。

このエントリーを含むはてなブックマーク

Similar posts&Popular Postsのtitleタグを変更する

2009 年 3 月 12 日 木曜日

WordPressで関連する記事を表示するPluginのSimilar posts&Popular Postsを用いた場合、デフォルトではtitleタグ月日が導入される。これでは微妙なので、以下のように変更。

<ul><li><a href="addressname" rel="bookmark" title="YYYY 年 MM 月 DD 日">タイトルタグ</a></li></ul>

<li>{link}</li>

<li><a href="{url}" title="{title}">{title}</a></li>

■参考
http://www.ikasuwp.com/wordpress_plugin/198/

このエントリーを含むはてなブックマーク

Wordpressで新着情報を表示するPlugin Customizable Post Listings をカスタマイズする

2009 年 3 月 11 日 水曜日

Customizable Post ListingsはWordpressで新着情報を表示するPluginだが、デフォルトでは微妙なので、修正する。

■日付の修正 - 611行目
$date_format = 'm/d/Y',  // Date format, php-style, if different from blog’s date-format setting

↓変更

$date_format = 'Y/m/d',  // Date format, php-style, if different from blog’s date-format setting

 

以下は好みに応じてカスタマイズ

■表示する件数 - 605行目
function c2c_get_recent_posts( $num_posts = 5,

function c2c_get_recent_posts( $num_posts = 任意の数,

■日付が不要な場合 - 606行目
$format = "<li>%post_date%: %post_URL%</li>",

$format = "<li>%post_URL%</li>",

このエントリーを含むはてなブックマーク

EC CUBEのタイトル改変:文字位置とタグ構成

2009 年 1 月 30 日 金曜日

siteframe.tplにある、siteframe.tpl

<!–{assign var=index  value="`$smarty.const.URL_DIR`index.php"}–>
<!–{if $smarty.server.PHP_SELF==$index}–>
<title><!–{$arrSiteInfo.shop_name}–></title>
<!–{else}–>
<title><!–{$tpl_title|escape}–>:<!–{$arrSiteInfo.shop_name|escape}–></title>

このエントリーを含むはてなブックマーク

EC CUBEのタイトルを改変:デフォルト文字を変更する

2009 年 1 月 30 日 金曜日

<!–{assign var=index  value="`$smarty.const.URL_DIR`index.php"}–>
<!–{if $smarty.server.PHP_SELF==$index}–>
<title><!–{$arrSiteInfo.shop_name}–></title>
<!–{else}–>
<title><!–{$tpl_title|escape}–>:<!–{$arrSiteInfo.shop_name}–></title>
<!–{/if}–>

このエントリーを含むはてなブックマーク

wordpressの“この投稿の続きを読む”を変更する

2009 年 1 月 25 日 日曜日

index.phpに含まれるタグ
<?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>

この投稿の続きを読む » となる。

<?php the_content(__('more', 'kubrick')); ?>

more… となる。

◆参考ホームページ
 wordpress:more・・・の日本語化
 http://w6.oroti.com/~may28/index.php/2008/09/more.html

 2.6.3デフォルトテーマの「more…」を日本語にしたい
 http://ja.forums.wordpress.org/topic/886

 続きを読むというリンクを記事名リンクに変更
 http://slashslash.jp/wordpress/54.html

このエントリーを含むはてなブックマーク