Results 1 to 3 of 3
-
15th Dec 2010, 06:01 AM #1OPMemberWebsite's:
scrls.co.ukAdd Your Own WP Quicktags
Ever wondered how to add your own "quicktags" in wordpress for quickness of just clicking a button?
Here is a tutorial written by me on exactly how to do that.
First off you will be working with 3 files:
quicktags.js
quicktags.dev.js
style.css
Now to edit the files:
Open up quicktags.dev.js located in your wp-includes folder and add in this code
PHP Code:edButtons[edButtons.length] =
new edButton('ed_span_class'
,'strong'
,''
,'</strong>'
,'s'
); // special case
save that and then re-upload it.
Now open up quicktags.js
add in on one line the exact same code but on one line as such
PHP Code:edButtons[edButtons.length] = new edButton('ed_span_class' ,'span' ,''
,'</span>' ,'p' ); // special case
(obviously you would edit this to whatever the code was that you just put in the quicktags.dev.js)
Now to edit the style.css
Go to the very bottom of the stylesheet & add:
PHP Code:info {
css here, whatever you want your quicktag to do
}
_brazzO Reviewed by _brazzO on . Add Your Own WP Quicktags Ever wondered how to add your own "quicktags" in wordpress for quickness of just clicking a button? Here is a tutorial written by me on exactly how to do that. First off you will be working with 3 files: quicktags.js quicktags.dev.js style.css Rating: 5
-
15th Dec 2010, 11:00 AM #2MemberWebsite's:
satiq.netI don't understand what it does... sorry
-
15th Dec 2010, 11:32 AM #3OPMemberWebsite's:
scrls.co.ukIn WP you have quicktag buttons so you can click them and it generates code.
Example:
Strong = <strong></strong>
Well this tutorial allows you to edit / add new quicktags
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...