Categories
Trik WordPress

Memunculkan Tombol Tersembunyi di WP Editor

Sebenarnya script TinyMCE yang dipakai wordpress punya banyak tombol dan jauh lebih lengkap. Tapi kita cuma disuguhi tombol-tombol yang memang sering dipakai. Ini tentunya dengan maksud untuk kemudahan dan tata letak saja. Dengan sedikit trik, kita bisa menambahkan tombol lain yang kita inginkan.

Bagaimana caranya?

Seperti biasa, masukkan kode-kode ini di file functions.php themes anda. Ingat ya? Gunakan child themes biar kalau themes anda ada update, penambahan ini gak hilang.

function tambah_tombol($buttons) {
  $buttons[] = 'hr';
  $buttons[] = 'fontselect';
  $buttons[] = 'sup'; 

  // etc, etc... 

  return $buttons;
}
add_filter("mce_buttons", "tambah_tombol");

Kode-kode hr, fontselect, sup, dll itu adalah tag HTML yang ingin kita buatkan tombolnya di editor WordPress. Dan inilah tombol-tombol yang tersedia. Silahkan pilih sendiri:

bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, outdent, indent, cut, copy, paste, undo, redo, link, unlink, image, cleanup, help, code, hr, removeformat, formatselect, fontselect, fontsizeselect, styleselect, sub, sup, forecolor, backcolor, charmap, visualaid, anchor, newdocument, dan separator.

Silahkan anda coba-coba sendiri ya.

Sumber: http://www.sycha.com/wordpress-add-hr-button-tinymce-visual-editor

By Lutvi

Bukan Ustadz, bukan Dai apalagi Kyai. Juga bukan guru. Hanya sekedar santri miskin ilmu yang coba mengamalkan 1 ayat warisan dari para ulama. Saat ini diamanahi menjadi admin web WordPress Indonesia

22 replies on “Memunculkan Tombol Tersembunyi di WP Editor”

punyaku… tombol2 itu tidak ada semuanya, kenapa ya? bantu dunk…
Baru 3 atau 4 hari ini, tombol itu tidak ada,
1. saya klik VISUAL atau HTML, tidak ada reaksi apa2..
2. sudah di reeinstall wordpress beberapa kali..
tombolnya masih tidak muncul…

saya juga seperti itu masbro πŸ™
malah html editor tidak bisa diklik kaya blank function, tetapi visual editor menampilkan HTML script , dan udah diinstall ulang berkali2 malah ,
naj akhirnya saya memecahkan masalahnya πŸ™‚
dengan menambahkan script ini :
define(‘CONCATENATE_SCRIPTS’, false );
tepat diatas require_once(ABSPATH ……….

tapi apabila menggunakan cloudflare , disable JS minify dan purge Cache , clear cache Pula Browser lalu refresh halaman editor tekan F5 3 X ,
dan sebut nama saya πŸ˜€
taharaa…..
semoga berhasil πŸ™‚

I simply want to mention I am just all new to weblog and absolutely loved this blog. More than likely I’m want to bookmark your blog post . You absolutely have awesome well written articles. Thanks a lot for sharing with us your webpage.

I just want to mention I’m beginner to blogging and honestly enjoyed you’re web page. Probably I’m planning to bookmark your site . You amazingly come with incredible articles and reviews. Thanks for revealing your blog site.

You actually make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and extremely broad for me. I’m looking forward for your next post, I’ll try to get the hang of it!

Well, I suppose that could ensue since Abigail and the girls commenced accusing supplementary those of witchcraft when they had been just open dancing naked within the woods and therefore, sinning. Abigail furthermore engaged in a affair along with John Proctor. Persons they were accusing were finally not prone of precisely what they’d been recently accused linked with, and the exacting accusers had been the furthest machine on the globe from being holy… they finished cheery bearing bogus witness.

I have been browsing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all web owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

The next time I read a blog, Hopefully it doesn’t fail me as much as this particular one. I mean, I know it was my choice to read through, but I genuinely believed you’d have something helpful to talk about. All I hear is a bunch of crying about something that you could possibly fix if you were not too busy searching for attention.

Excellent blog here! Also your website loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

Excellent read, I just passed this onto a friend who was doing some research on that. And he just bought me lunch as I found it for him smile So let me rephrase that: Thanks for lunch!

Comments are closed.