[wp-hackers] Possible to remove elements of 2.5 admin?
Ozh
ozh at planetozh.com
Sun May 11 08:24:15 GMT 2008
Or, since jQuery is always loaded,
jQuery('#yourelement').remove();
On Sun, May 11, 2008 at 6:40 AM, Jeremy Visser <jeremy.visser at gmail.com> wrote:
> On Sat, 2008-05-10 at 12:55 -0400, Jeremy Clarke wrote:
> > So, is there some other way to remove the categories box (and the
> > other default boxes)?
>
> Would you be comfortable doing it in JavaScript?
>
> function removeContent(id) {
>
> var node =
> document.getElementById(id);
>
> if (node) {
> node.parentNode.removeChild(node);
> node = null;
> }
>
> }
>
> Credit goes to Paul Fenwick, who showed this JS example in a lightning
> talk ("Fixing the web") at linux.conf.au this year.
>
> http://www.youtube.com/watch?v=8hghpuxCHTc
>
> --
> Jeremy Visser http://jeremy.visser.name/
>
> () ascii ribbon campaign — against HTML e-mail
> /\ http://asciiribbon.org/
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
http://FrenchFragFactory.net ~ Daily Quake News
http://planetOzh.com ~ Blog and WordPress Stuff
More information about the wp-hackers
mailing list