Community Forums › Forums › Archived Forums › General Discussion › Code to build a certain function inside of a post
- This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by
Laura.
-
AuthorPosts
-
October 26, 2013 at 10:27 pm #69193
jkrytus
MemberSome time ago I hired a freelancer to write some code for me. It worked for a long time but something recently broke it. I don't know how to troubleshoot it because I don't know where to find the code. Could someone possibly point me in the right direction?
How it worked was that inside the edit screen of a post I could type
print_link
Doing so would result in two icons. One that when pressed would redirect to a certain page and the other icon was printer icon for obvious purposes. Somehow the first icon became disconnected.How would one accomplish this? Where do I look for the code that connects the icon with the action?
http://www.sqrft.net/2013/10/carpenters-helper-kitchens-baths/October 26, 2013 at 11:00 pm #69195nutsandbolts
MemberYou must have a plugin in place to prevent people from right-clicking on the site, because I'm not able to look at the issue with Firebug or Inspector. The image is missing from its path, but without the ability to right-click, I don't know how to help you find it.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 26, 2013 at 11:03 pm #69196jkrytus
MemberYou are exactly right. I've deactivated JR Protection plugin so you can look. Thank you!
October 26, 2013 at 11:08 pm #69198nutsandbolts
MemberOkay, I see the problem. It looks like the site was originally built on another server, so the path to the image is the path on the dev server instead of on your site: [redacted] that test WP installation must have been deleted by the developer, which is why the image is broken.
I'm guessing the shortcode you mentioned was added into functions.php, but the path to the image could be in functions or your stylesheet (or a single.php if your child theme uses one, or any number of other templates). Without access to the backend of the site, it would be difficult to guess where and how the function was coded. What you'd need to do is find the image in your media library and change the path to the correct one for your site. I hope that makes sense!
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 26, 2013 at 11:25 pm #69202jkrytus
MemberThis reply has been marked as private.October 27, 2013 at 7:44 am #69220Laura
Memberjkrytus, I've sent you an email. You contacted me yesterday evening, just a few hours before you posted your question here. I don't check email on weekends. But Andrea Whitmer was kind enough to send me a tweet and let me know about this issue.
I'm happy, of course, to fix the link. Just send me a reply to my email and get me a log in and I'll have it fixed in a jiffy. 🙂
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.