• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Code to build a certain function inside of a post

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Code to build a certain function inside of a post

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by Laura.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 26, 2013 at 10:27 pm #69193
    jkrytus
    Member

    Some 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 #69195
    nutsandbolts
    Member

    You 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 #69196
    jkrytus
    Member

    You are exactly right. I've deactivated JR Protection plugin so you can look. Thank you!

    October 26, 2013 at 11:08 pm #69198
    nutsandbolts
    Member

    Okay, 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 #69202
    jkrytus
    Member
    This reply has been marked as private.
    October 27, 2013 at 7:44 am #69220
    Laura
    Member

    jkrytus, 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. 🙂

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble