This topic contains 3 replies, has 2 voices. Last updated by Chris Winikka 3 years, 4 months ago.
Topic Author | Topic |
---|---|
Posted: Tuesday Aug 20th, 2013 at 1:36 pm #56268 | |
My question is this: In a customized Authorize.net checkout form, how do I get the shortcode to use the path to the child theme directory instead of the parent theme directory? I customized an Authorize.net Checkout form according to the article (http://www.s2member.com/kb/pro-forms/#customizing-pro-forms), and no modifications were showing until I realized that it must have had something to do with the child theme (v. parent theme). I dropped my template into the parent theme, and it worked. Of course, this defeats the purpose of a child theme, which is to keep customized PHP files safe from theme updates. I will be passing this off to my client, and I would prefer not to put my client in panic mode if he decides to update the parent theme and loses the customized form. I’m using shortcodes for the form, so in the short code, I added
How can I modify the shortcode so the template attribute looks in the child theme folder instead of the parent theme? In answering my question, could you please be as specific as possible. For example, I’m already suspecting that it has something to do with TEMPLATEPATH v. STYLESHEETPATH, but I have no idea as to how I would make that change or even where to make the change. Thanks.
|