Remove Smart Quotes in WP

ကျွန်တောှတို့တွေ wordpress မှာ smart quotes တွေ ဖြုတ်ချင်လား။ ကျွန်တောှကတော့ ဖြုတ်လိုက်တယ်။ ဘာလို့လည်းဆိုတော့ html example တွေကို ဖောှပြတဲ့အထဲမှာ လေ့လာသူတွေအနေနဲ့ copy ကူးပြီး သွားထည့်လိုက်လို့မရဘူး။ တဆင့်အနေနဲ့ smart quotes တွေကို လိုက်ပြင်နေရတယ်။ ဒါကြောင့် ကျွန်တောှကတော့ ဖြုတ်လိုက်တယ်။ Smart Quotes ဆိုတာကတော ”smartqutote” အဲဒါလေးပါ။ ကျွန်တောှကတော့ ရိုးရိုး double quotes ” ဖြစ်ဖြစ် single quotes ‘ ဖြစ်ဖြစ် အဲဒါပဲ အသုံးပြုပြီး ဖောှပြပါတယ်။ copy paste လုပ်တဲ့လူတွေလည်း အဆင်ပြေအောင်ပေါ့။

ကိုယ့် theme ရဲ့ function.php ထဲမှာ

remove_filter(‘the_content’, ‘wptexturize’);
remove_filter(‘comment_text’, ‘wptexturize’);

လေး ထပ်ဆုံးမှာ သွားဖြည့်လိုက်ရင် ရပါပြီဗျာ။ လွယ်လွယ်လေးနဲ့ အသုံးဝင်လှပါတယ်။

1 Comment

  1. Than Win Naing says:

    ကျေးဇူးပဲဗျ
    ကျွန်တောှ ဧရာ ယူနီကုတ်ဆိုဒ်ကနေ font embed လုပ်ဖို့ copy လုပ်ပြီး သုံးတာ ဖောင့်မမြင်ရတော့ပဲ ဖြစ်နေတာ အဲဒီ Smart Quotes တွေဖြုတ်လိုက်မှပဲ အဆင်ပြေသွားတယ်။
    အစက ဖြုတ်ရမှန်း မသိဘူးလေ။ :)

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.