Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

WordPress tutorial for creating a Coming Soon page plugin?

Hi, i am wondering if there is anywhere that would give me a tutorial on how to make a plugin that would allow me to make my theme i have coded using Bootstrap into a working WordPress theme?

All i would have to do is add the plugin and by default the theme would be installed but would be easily customized using the plugin settings.

4 Answers

Matt Campbell
Matt Campbell
9,767 Points

The plugin you're describing isn't necessary and is already covered. How would a plugin install a theme when WordPress already has that functionality built in? SImply click add theme and boom, done.

As for the customizing the theme, you're talk about theme options. You can't add theme customization as a plugin as every theme is different and how's the plugin going to find the element to make changes upon? Have a look at the like of Titan theme options framework.

To be honest, I think what you're thinking is actually impossible to make. Check out theme options, that'll cover what you want.

Chris Dziewa
Chris Dziewa
17,781 Points

That seems like a very complex plugin. The chances of finding out how to make that plugin I feel would be very small since if someone had created one, it would be available for download already, not to mention it would probably be a very long-winded tutorial. I would recommend starting the WordPress track taught by Zac Gordon. One of the courses is Building a WordPress Theme. It would teach you what you need to know about turning a static website into a WordPress theme. Once you understand it, you should be able to apply the same principles to a site built in Bootstrap. Eventually you could learn about building a WordPress plugin and if you are still up to the challenge, you could figure out how to build your plugin. Keep in mind that Bootstrap and WordPress keep changing so if you want to provide this plugin for more than just your own site, you will want to keep it updated and working with new versions of both softwares.

thanks for the reply, i understand it would be a big task, i have converted themes before from HTML to WordPress i just meant would it be all through the plugin or would i just have the plugin able to edit the main theme. If that makes any sense.

Chris Dziewa
Chris Dziewa
17,781 Points

If I had to guess I would say that it would be to edit the main theme. You still need to have a functional theme to use the plugins to even access your admin panel. Perhaps you could build a specific starter theme that you could ship out with the plugin so that you could target your specific style classes. Otherwise you are at the mercy of other themes' styling. I'm sure you could research this more in depth on advanced styling plugins on google. Even do a search in available plugins right in wordpress for customization or Bootstrap. That might at least get you started.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

As far as I know, this does not exist and as folks pointed out would be quite complex to create. I'm not sure how you would account for all of the possible code variations in the person's template. The only way I could see is if you had someone insert in some custom tags into their static HTML that you would then swap out for WP code. Interesting idea though!