Bagaimana mengatur limit karakter pada meta description di Mecha-CMS? #279
Answered
by
taufik-nurrohman
bungfrangki
asked this question in
Q&A
-
pada berkas enter.php saya mendapati meta-description ditulis seperti ini:
bagaimana cara mengatur batas karakter pada meta description tersebut? |
Beta Was this translation helpful? Give feedback.
Answered by
taufik-nurrohman
Dec 20, 2023
Replies: 1 comment 6 replies
-
Kalau sekedar untuk membatasi jumlah bisa pakai <meta content="<?= substr($w, 0, 160); ?>" name="description"> <meta content="<?= To::description($w, 160); ?>" name="description"> |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
bungfrangki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kalau sekedar untuk membatasi jumlah bisa pakai
substr()
, kalau mau menambahkan titik tiga di akhir perpotongan bisa pakaiTo::description()
: