-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bootstrap v4 support #19
Comments
Hi back, I have already thought about this... it would probably need to happen in a new plugin so that it does not break for users of the existing plugin that still use Bootstrap 3. However, your idea of a v4 branch sounds good, this would basically allow to manage both plugins in one repository - which is generally not a good practice, but since these two plugins would basically be exactly the same except for the markup, it might be the most efficient solution here. Alternatively, we could add a switch to the existing plugin where Bootstrap 3 is default (for back compat), but one could choose 4 instead if needed. I don't really like this idea though, I think a plugin should serve one purpose - this sounds like a little overhead to me. I've just started to use v4-alpha, and I'm working on two other plugin projects right now, but Bootstrap 4 for Contact Form 7 is definitely a plugin I have planned on creating. A realistic date for me to get to this would be some time January 2016. Sounds good? |
:) nice to hear you already have considered this. I agree with creating two separate 'plugins' for this cause. As for the different branches; i.m.o. the main branch should reflect the 'main' bootstrap version currently used by the public. Therefore, I could foresee the v4 branch replacing the current, v3 branch as it becomes more widely used in the next year or so. I myself also started using the v4-alpha (for a site i'm trying to put together at the moment). It's my own site, therefore I'm willing to take the rist of using the alpha verion ;-) |
Thanks for your offer to help! Like I said, I could do it in January (maybe earlier), but feel free to get started. I'm not sure how much has changed in v4 regarding the form markup, so maybe it's not even THAT much work :) I just created a v4 branch. Simply fork the repository and work in that branch if you like. To get started, basically all you need to work with can be found in the Thanks again for your help, I appreciate it! |
No problem :) I just forked the repository. I hope to get something started in the next couple of weeks :) I just found this overview on the official 'Migrating from v3 to v4' support page. Could be helpfull! |
I just released a new version, including the fix to the issue you discovered (but you probably saw that already). Anyway, just make sure you update your fork :) |
I'd like to check in on this... I installed your v4 branch (showing as 1.2.4 in plugin manager). With debug switched on, my WordPress back-end and front-end echoed the following...
Through the plugin manager, an update was available to 1.4.2. I updated, and this got rid of the error messages. I had planned to write to say, I'm not sure if the resulting output in my form is Bootstrap 3, 4 or neither, but it looks a lot like the code has reverted to the standard Contact Form 7 output from before installing your v4 plugin ...
However, I think I see the reason... Now, in my case, I am hoping to achieve a couple of other things:
|
Disclaimer: Just started with Bootstrap and first time using this plugin Yesterday I came across this plugin and started adapting it for Bootstrap 4 (since I am using v4), fork Should I make a PR for these changes? Since it is not yet complete I am a little hesitant :) |
@wilmardo Thanks for working on this! I think it would be best for this to live as a separate plugin. This one right here has always been for Bootstrap 3, and we cannot simply change that. An alternative would be to include both and add an option to choose between version 3 and 4, but I don't really like that since it would bloat the plugin and overcomplicate it. Once both plugins are in the repo, we should definitely clarify though that one is for version 4 while the other is for version 3. |
The reason you get version 1.4.4 by Felix Arntz is because it was forked from that version. As long as the fork is not updated, WordPress will find an update for this plugin. You could just ignore the update message, since it is not that much of an important fix. |
I'm having trouble using the input-group on bootstrap 4, anyone else? |
@juliusbangert The fork is not in production state, I started with the v4 support in the hope to kickstart the development. The fork is more of a suggestion, the classes are up to date but as stated in my comment above but the changed horizontal alignment in bootstrap v4 has not been done. |
Hi there,
Are you planning on supporting Bootstrap v4 in the (near) future?
The first v4.0.0-alpha is out, and the second alpha is expected any moment. I don't expect to see mayor differences in the bootstrap form output/classes compared to bootstrap v3.
However, maybe it's an idea to start a v4 branch to start the work on this?
The text was updated successfully, but these errors were encountered: