Hi there,
Are you familiar with our documentation? We cover that in detail here:
https://givewp.com/documentation/developers/themeing-with-give/
Thanks!
Thread Starter
lucein
(@lucein)
thank you for the response. The issue is that I need to surround elements in the different areas of the form that are contained in the includes/forms directory in div’s to style forms easier.
As well as keep the forms responsive and working on all devices.
If I alter the template.php file in the above directory and include it in a give directory inside my child theme it is not used. The default template.php file is used inside the plugin directory.
I have tried every directory name combination that I can think of to get my altered file to be used from within the child theme. With no luck, the only way I can get the altered template.php file to be recognized is to replace the file in the plugin directory.
Please advise.
I can verify that if you want to override the single Give form (not the form as output by the shortcode), then all you need to do is set it up in your child theme like this:
wp-content/theme/my-child-theme
— give/
—- single-give-form.php
I might suggest that you take your parent theme’s single.php file and replace the single-give-form.php file with that. What I often do is simply add a <h1>TEST!</h1> to the top of the file just to make sure it’s working correctly, and then customize from there.
Secondly, I’m not sure why you need to replace the wrapper div’s of the form. Instead, you can style them according to your theme styles. It would be easiest if I could see your site. Do you have a live url with a Give form on it? It would be even easier if you first got the template setup correctly in your child theme and then we could go from there.
Thanks!