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’);

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

One response to “Remove Smart Quotes in WP”

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

Leave a Reply

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

Discover more from Saturngod

Subscribe now to keep reading and get access to the full archive.

Continue reading