Jack Struck
Member
Posted 4 months ago #
I am trying to add a checkbox to the links manager so that when a user creates a new link, they can toggle the checkbox to add a css class to that specific link. The css class will make the single link stand out.
I'm not sure where to start here, but I've been looking for a while. Any help is appreciated!
bcworkz
Member
Posted 4 months ago #
Start with Function Reference/add_meta_box, including the reading and references at the end.
Jack Struck
Member
Posted 4 months ago #
I ended up going in a different direction to achieve what I wanted. I put:
jQuery("a[href*=#title]").addClass('heading');
in the head to find all the links going to #title, then add the class I wanted. Success!
links2012
Member
Posted 4 months ago #
If you want even more features check out the LinkPress module for wordpress at LinkPress.org