-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default templates #4
Comments
Hi @SGSSSDTP, glad you find the plugin useful! Thank you for your question. The plugin does not come with default styling, because the markup of the forms are identical to their shortcode counterparts. In fact, the plugin just uses The point of custom templates is to provide options for when you do not want the plugin to apply Theme Compatibility. Theme Compatibility is a technique that relies on a standard theme template file (like So in short, if there are no apparent side effects, you would generally not use custom templates in your theme, but leave the content replacement up to the plugin. The theme itself should apply the styling as it would with the usual form shortcodes. If you however do decide to use custom templates, you should refer to I hope this answers your question. Let me know if there's anything else I could help with. |
The following update is considered for the Theme Compatibility readme section. @SGSSSDTP Would you find this change helpful and clear enough? Theme CompatibilityBy default, the plugin generates the pages of both the form archive and single forms using template files from your theme. This theme-compat logic is similar to the ones featured in plugins like bbPress and BuddyPress. If your theme contains a When desired, the templates used for displaying both the form archive and single forms can be overridden in your theme. Use the following file names in your theme's
Refer to the |
Glad you could confirm the plugin works with other themes. I don't have a copy of the BuddyBoss theme to debug the issue. If you find anything that might suggest a fix is needed in the plugin, let me know! |
Apolgoies if this is the wrong place to ask, but I was hoping there were some example templates for use with
archive-gf-pages-form.php
andsingle-gf-pages-form.php
. I've managed to install these within my theme but have no idea what to put in them or where to get the content from for elsewhere. Gravity forms based on shortcodes or styled fine, but those generated by this plug in do not style at all.Example: https://social.sgsss.ac.uk/forms/test-2/
The text was updated successfully, but these errors were encountered: