۱۳م آبان ۱۳۸۸

اگر از طریق ویرایشگر خود وردپرس نوشتههای خود را منتشر میکنید حتما در تب دیداری مشاهده نمودهاید که فونت نوشتاری آن قابل خواندن نیست و گاهن «ب» را بجای «ی» و یا اشتباهات دیگر را به کرات مرتکب میشوید. برای جلوگیری از این اشتباهات بهترین راه تغییر فونت است. به همین خاطر بنده فونت پیشفرض Georgia را به Tahoma تغییر داده و فایل css را برای دانلود گذاشتهام. کافیست فایل را دانلود کنید و در آدرسی که در زیر ذکر کردهام جایگزین فایل قبلی کنید.
http://yourdomain.com/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css
دانلود فایل content.css برای تغییر فونت نوشته جدید در وردپرس
وردپرسnew post، tahoma، تغییر فونت، تغییر فونت نوشته تازه، نوشته تازه، وردپرس
۸م شهریور ۱۳۸۸
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 2290
Warning: implode() [function.implode]: Argument must be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3242
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3306
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 2290
Warning: implode() [function.implode]: Argument must be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3242
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3306
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 2290
Warning: implode() [function.implode]: Argument must be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3242
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3306
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 2290
Warning: implode() [function.implode]: Argument must be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3242
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3306
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 2290
Warning: implode() [function.implode]: Argument must be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3242
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3306
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3643
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3651
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3654
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 1925
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 2290
Warning: implode() [function.implode]: Argument must be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3242
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3265
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3306
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3357
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
Warning: Invalid argument supplied for foreach() in /home/sinacws/public_html/wp-content/plugins/devformatter/geshi/geshi.php on line 3502
اهل فن خوب میدانند که برای فارسی سازی پوسته وردپرس اولین کار گذاشتن دو کد زیر در Body است
| ۱ | direction: rtl; |
| 2 | text-align: right; |
البته استثناهایی نیز برای فارسی سازی وجود دارد ولی تمام راهها به تخریب فرم کمک میکند ، منظورم از فرم تنها بخش کامنتها نیست بلکه هر جایی از پوسته که TextBox و امثالهم وجود داشته باشد را میتوان فرم نامید. حال منظور بنده از تخریب بهم خوردن جهت نوشتاری یا همان Direction است. بطور مثال اگر پوستههای وردپرس.کام را بنگرید به این مسئله پیخواهید برد که بسیار ناشیانه فارسی شده یا بهتر بگوییم فارسی شده ولی فرمهایش بهینه نشده.
بهینه سازی فرم یعنی اینکه TextBox نام از راست به چپ نوشته شود و ایمیل یا آدرسوبلاگ از چپ به راست. هنگامی که پوستهای را فارسی میکنید با قرار دادن یکی یا دو کد ذکر شده در id یا class مرجع باعث خراب شدن جهتهای ذکر شده خواهید شد و چاره کار تعریف مجدد جهت است که به سه روش میتوانید اینکار را انجام دهید.
روش اول قرار دادن جهت مورد نظر در داخل خود عنصر است ، بطور مثال کد زیر از comment.php استخراج شده ، مشاهده میکنید که با تعریف style و عناصر داخلی توانستهایم جهت نوشتاری TextBox ایمیل را چپ به راست کنیم.
| 1 | <input size="32" value="" style="text-align: left; direction: ltr;" name="email"/> |
روش دوم تعریف class یا id جداگانه برای عناصریست که باید جهتشان چپ به راست باشد. این روش از روش اول کارآمدتر است چون شما با یک بار تعریف در فایل css و صدا زدن آن در فایلهای php از تعداد خطوط خود در فایل php خواهید کاست. بطور مثال در زیر idهای email و url شامل کد direction:ltr میباشد تا آنرا چپ به راست کند.
| 1 | #email, #url { |
| 2 | direction:ltr; |
| 3 | } |
| 1 | <input size="32" id="email" value=""/> |
| 2 | <input type="text" size="32" class="...." value=""/> |
روش سوم اصلاح شدهی روش دوم است در این نوع کد نویسی علاوه بر صرفهجویی کد در فایل php که در روش دوم استفاده کردیم کد در css نیز چند خط کمتر میشود. به مثال دقت کنید.
| 1 | #ltrform { |
| 2 | direction:ltr; |
| 3 | } |
| 1 | <input size="32" id="email ltrform" value=""/> |
| 2 | <input type="text" size="32" class="...." value=""/> |
با تعریف class یا id جدید در فایل css و صدازدن آن در فایل php به اینصورت که بعد از class یا id عنصر یک فاصله سپس نام class یا id تعریف شده را میآوریم و در حقیقت برای عنصر دو class یا id تعریف نمودهایم.
توسط یکی از سه روش فوق توانستیم فرمهای خود را بهینه کنیم. یادتان باشد فیلد name را برای احترام به زبان فارسی rtl بگذارید تا دوستانتان هنگام دادن نظر وقتی میخواهند نام خود را وارد کنند اگر جهت در فیلد نام ltr باشد خواهند نوشت Sinac چون احساس میکنند شما دوست ندارید فارسی را پاسبدارید ولی اگر rtl باشد خواهند نوشت سیناک آنوقت هست که شما با تنظیم جهتها در فیلدهای نام، ایمیل و آدرس به دوست خود القاء میکنید که نامت را فارسی بنویس، ایمیل و آدرس سایتت را انگلیسی ؛ اگر هم دوست نداشتید کلا میتوانید تغییرات فوق را در فرم و فیلد خود اعمال نکنید ولی مطمئن باشید کاربران وبلاگ شما را به چشم یک وبلاگ حرفهای نگاه نخواهند کرد.
وردپرسcss، طراحی، پوسته وردپرس
۱م شهریور ۱۳۸۸
پوستهی Strange Little Town را مدتها پیش فارسیسازی و بهینه کردهام و در وردپرس فارسی قرار دادهام ولی بی هیچ دلیلی تابحال آنرا در تارنگارم معرفی نکردهبودم ، این پوسته دارای دو عکس زیبا در بالا و پایین صفحه است ، عکس بالایی آسمان پر از ستاره را نشان میدهد و عکس پایین شهری خاموش با دودکشها و ناقوس در دل شب را به تصویر کشیده است ، لازم ذکر است که رنگ قالب در این پوسته صورتی است که در هدر آن کمی به بنفش روشن نزدیک میشود. طراح آن Minmin است که گویا کفگیرش به ته دیگ خورده و دیگر دلاری برای پرداخت هاست ندارد و متاسفانه هاستش به ملکوت پیوسته! برگردیم به پوسته ؛ یکی از بارزترین خصوصیات این پوسته منوی بالای صفحه است که وقتی موس را بر روی آن حرکت میدهید به شکل زیبایی با یک تصویر هایلایت میشود. برای نوشتههای درشت فونت پیشفرض را تیتر انتخاب کردهام تا اگر سیستم بینندهای که وب شما را باز میکند این فونت را داشت به شکل زیبایی حروف را مشاهده کند ، البته اگر این فونت وجود نداشت فونتهای دیگری را مدنظر گرفتهام. بنظر بنده که تا این مدت استقبال خوبی از پوستهی "شهر کوچک ناشناس" شده است ، با توجه به اینکه سازنده این پوسته دیگر درقید حیات اینترنت نیست درصورتی که هر مشکلی با این پوسته داشتید با بنده از طریق ایمیل تماس بگیرید تا راهنمایتان کنم. شما میتوانید آنرا از وردپرس فارسی توسط این پیوندها مشاهده و بارگذاری کنید.
مشاهده پوسته
دانلود پوستهی Strange Little Town
وردپرسStrange Little Town، دانلود، فارسی، قالب، وردپرس، پوسته وردپرس، پوستههای وردپرس