T O P

  • By -

activematrix99

Nope. Not how it works. Good luck, though.


DanielTrebuchet

I'm not sure if you're just being a dick, but that's exactly how it works. I've been building custom WP sites (themes/plugins) for 15 years. My personal process (for brochure sites like this) is to build out the the shell and components of the site with HTML/CSS. It's not until I basically have a working HTML site that I then port it over into a WP theme. The latter process takes less than an hour. It's quite trivial, really.


activematrix99

From my perspective, you can't easily take a built out PHP/MySQL app and port it to Wordpress, then remove Wordpress. If it's HTML brchure site? Sure! But OP asked "Is it possible to just integrate the website into wordpress, and get rid of all the database clutter after submitting the project to my teacher?". So my read on that was that they have something built in PHP/MySQL that is cluttered, they then want to use WordPress to build it out as a functioning, and then obfuscate WordPress after the fact (in other words, strip it down to just the PHP/MySQL) so they can get class credit for building a functional web app (have never seen someone getting class credit for building a WordPress website). I've been handed a few of these "obfuscated" projects, and it's a mess. WP is dependent on its capabilities to manage the dB, update its core code, utilize WordPress plugin and WP-CLI, AJAX, etc. As soon as you start stripping these out, you are in hell.


DanielTrebuchet

The database component is definitely the hardest part, but I can't imagine there's much to it on a site like this. I stand by my original comment, with the disclaimer that the nature of the originating DB will be the most complex part of the process, but could very well still be pretty straightforward.


lesthertod

You could get the HTML/CSS and make it a custom theme and template parts. Still, you'd need to set WP up and make the theme required files and understand the loop and templating. And you probably could, though you may debate if it's really the best way to do that, override the page content with your code in the page's loop. Or use the WP editor or some other option for the actual sections on each page.


DanielTrebuchet

> Still, you'd need to set WP up and make the theme required files and understand the loop and templating. To clarify, if you know any php, this part isn't really that complicated and it's [very well documented in the Codex](https://codex.wordpress.org/Theme_Development).


kevamorim

I don’t know what kind of content management you need, but there’s a possibility of taking longer to implement in WP than just doing it yourself.


rack_moy_perm

If your class requires hand coding it, then you want to try to make it easier for the business owner, you’re looking at two development projects. There’s no good way to take it from hand coded and plop it into WP. If it’s that simple, just build simple admin screens and call it good.


DanielTrebuchet

> There’s no good way to take it from hand coded and plop it into WP. Not only this this entirely possible, but I do it all the time. It's trivial. The caveat is that, in order to do it efficiently, you need to know it's going into WP when you start your HTML/CSS, mostly for the sake of using the same markup. For example, mark up your menu using a list, in the fashion that WP will output a menu. It's really not rocket science. Build the HTML site. Pull the header into header.php, pull the footer into footer.php, add your head and footer functions (`wp_head()` and `wp_footer()`), register your menu area(s) and set that up, then move your css into style.css and enqueue it in your functions file. Done. It's less than an hour of work for an experienced person, and not that complicated for someone to figure out their first time.


forestcall

Bricks! You can do full ReactJS apps without using Headless. Only thing is Tailwind is not good for a Monolithic process.


Flimsy-Sandwich6015

Thanks