[pmwiki-users] add a css-class to a link

Eemeli Aro eemeli at gmail.com
Thu Feb 12 13:27:18 CST 2009

2009/2/12 noskule <noskule at gmx.net>:
> hi all
> Is there a way to add a class to a wikilink like it can be done to a
> list? I need something like:
>    %item class=confirm-delete%[[Main.HomePage|Delete Test]]
> should render like
>    <a href=# class="confirm-delete wikilink" ....

You'll need to first add the following line to your config file:

$WikiStyleApply['a'] = 'a';

Once you've done that, you should be able to use the following to get
what you want:

%apply=a class='confirm-delete'%[[Main.HomePage|Delete Test]]


More information about the pmwiki-users mailing list