• Resolved lucein

    (@lucein)


    Hello,

    I would like to make some minor changes to the template.php, but of course don’t want to change the plugin.

    Does the plugin support putting plugin files in the child theme directory?

    So far I have not been able to get this to work.

    Modal Window
    Also the model window to show the Payments fields, I don’t see an option to show a Close button to close the popup window. Is there an option for this that I am missing?

    Please advise.
    Doug

    https://ww.wp.xz.cn/plugins/give/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    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.

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Child theme alterations & Model window close button?’ is closed to new replies.