![]() |
Any wordpress experts around tonight?
I'd like to add onMouseOver string to links in the sidebar.
The only logical way for me to be able to do this is if I were adding links manually, directly in the sidebar.php template instead of using the wp-admin/link-add.php Is there a way to configure wp so that i am able to add onMouseOver to links added via wp-admin/link-add.php |
It will most likely be in the css spacedog
|
Quote:
You need to do a little code hack. I just dug into the code really quick for you, here's what ya need to do: Go into wp-includes and find link.php open it up and find this line: PHP Code:
|
TexasDream: You might wanna go in and edit the php code tag colors bud :thumbsup
|
Quote:
the link-add.php takes the link info added via the admin & rewrites it in html for normal html linking structure. In the .css I can add attributes for links, however, the onMouseOver needs to be after the closing link url ' & before the link closing >, & in the css I can't figure a way to insert a code inside a closed tag. Sure it would be very easy if I wanted to add a code that was tagged alone to appear after the link, but that's not the case here as the onMouseOver code goes inside the same tags as the link url. Even in the admin, one can add html before or after a link, but nothing inside the linking tag itself? I hope that made sense, I wasn't sure how to word all this. |
Quote:
what line number is it? what version? |
Quote:
I'm on version 2. |
Quote:
you have much experience with php? |
Quote:
Before I got into porn I owned a company that did Information Warfare research for the Pentagon.... :Oh crap |
Quote:
I'm going to try something & come back & let you know if it works. :) what if I take the PHP Code:
|
Quote:
If your idea doesn't work let me know..... |
Quote:
Let me know. Really that's an afro-engineered solution, it'd probably be better to make an actual plugin that allows you to set per-link variables in the control pannel, but that would take some effort.... |
Quote:
which of these indicates the closing for link? is the first ' , the " in the middle, or the closing ' ? |
Quote:
|
Quote:
|
oh well. Didnt work, my theory made all the links have %20rel=/ at the end of them.
|
Quote:
I tested on a blog that's not active.... |
Yeah shit gets parsed out every which way, so that's definately not going to be a solution without having to touch several files, which would make upgrading a bitch.
Let me look into a better solution for ya, brb. |
I've been under the assumption you're using the onmouseover to trigger some javascript function and not just change the color or some shit like that which CAN be done with css right?
|
Ok, I went ahead and hacked the files necessary for you and it's all working. Hit me up on ICQ I'll send em to ya.
|
Quote:
|
| All times are GMT -7. The time now is 01:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123