Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

How to add Quicktags

TrackBack | Filed by Thomas under Plugins, WordPress | Post popularity 26%

Updated 16th May, and should now work fine with WordPress 2.2. Please report any bugs if found!

The Quicktags Plugin

In order to get the Quicktags add-on displayed above your comment form start by downloading a copy of comment_quicktags.zip, unzip it and upload the 2 files to your theme directory:

Download Download comment_quicktags version 1.1

Second, (-> WP2.1) add the following to your theme’s header.php:

<!-- Include the Comment Quicktags -->
<script src="<?php echo bloginfo('template_directory') ?>/quicktags.js" type="text/javascript"></script>
<script src="<?php echo bloginfo('template_directory') ?>/comment_quicktags.php" type="text/javascript"></script>

Then replace the existing textarea paragraph in your theme’s comments.php with this:

<p><script type="text/javascript">edToolbar();</script>
<textarea style="width:99%;" name="comment" id="comment" cols="70" rows="10" tabindex="4"></textarea>
<script type="text/javascript">var edCanvas = document.getElementById('comment');</script></p>

Finally, open styles.css in your theme’s folder and add the following lines (anywhere):

/*** QuickTags on Comments (Plugin styling) ***/
#commentform #ed_toolbar input.ed_button { width:auto; }

Enter one of your posts and refresh your browser window. You should now be able to see the Quicktag add-on above the textarea where comments are entered.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • NewsVine
  • Netscape
  • Reddit
  • Spurl
  • SphereIt
  • Technorati
  • YahooMyWeb
  • DZone
  • feedmelinks
  • Linkter
  • Ma.gnolia
  • Slashdot
  • StumbleUpon
  • TailRank
  • co.mments
01

Blogvaria » Blogvaria Plugins said,

February 26, 2007 @ 3:09 pm

[...] theme but would like to include this add-on to the theme you are using, please see this post about how to add Quicktags to my WP theme. Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]

02

Blogvaria » Upgrading to Wordpress 2.2 said,

May 16, 2007 @ 10:55 am

[...] I needed to do was to include the “old” quicktags.js from WP 2.1 in order to get my comment quicktag add-on [...]

03

John Hoff - eVentureBiz said,

July 4, 2008 @ 1:43 am

Very cool plugin. I just installed it on my blog. Thank you very much!

URL for comments RSS 2.0 feed Subscribe to Comments | TrackBack URI

Leave a Comment

Akismet has protected Blogvaria from 64,995 spam comments. Design by Evaria.com. Powered by WordPress.
Our beloved and trusted server has rendered 3.511 pages so far today, an amazing 3.387 pages yesterday
and even more astonishingly 156.092 pages since 23 June 2008 alone without dropping a byte nor a pixel.

Close
E-mail It