-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced post and reply menu item text with icons and tooltips. Removed Spam menu item. #79
Conversation
…ed Spam menu item. Fixed #53 replaced post and reply item menu text with icons, removed Spam item, added tooltips for items.
@rgilman, I changed the post action menu items from text to icons. I thought this was going to take me weeks but your approach of using the background image for the icon works great. Also, thank you for the huge help with hooks, they work great. I removed the Spam menu item and added tooltips for all menu items using the hooks approach. Of course, the icons themselves are just placeholders for when we can get custom icons made, which will look much nicer. |
@iangilman, @rgilman's idea of using the background image of menu items to display icons works great, I changed the Actions and Reply menus in posts, also added tooltips and removed Spam link using hooks. I just rebuilt everything from a new master to avoid merge conflicts. |
@DavidScottBernstein, I've discovered another way to remove the Spam item. Not necessarily better but I wanted to share it. I got the clues I needed from the second post in customizing bbpress admin links. Here's the code that works for me locally (in bfc-functions.php):
These look just like the code starting at lines 1841 and 2418 in BTW, I gather that |
Another thought: Now that we have the filter functions going, I'm wondering if it might be better form to replace the words with the icons via |
The changes look good to me, but @rgilman's thought about using the icons in the tags seems interesting. What do you think, @DavidScottBernstein? I guess I could go either way on it, but it's worth considering. @rgilman The alternate way to remove the spam link is good to know about. Any thoughts on how you would add the title while in there? I still don't know enough about WordPress to evaluate which approach would be better. |
@iangilman. I'm not sure what you mean by "add the title while in there." (Edit: duh, now I see. "title" is the correct name for the metadata that becomes the tooltip.) If you mean how to add the tooltip, I don't think it can be done directly via what I have with We will need to use something like |
To be specific, here's the pattern for how I see replacing the words with icons:
|
Fixed #53 replaced post and reply item menu text with icons, removed Spam item, added tooltips for items. (Branch David20)