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

Juan García
Juan García
10,723 Points

What's the best way to create a blog and integrating it into a website handcoded in HTML/CSS/JS?

Hi,

I am currently creating a website for a client, using Bootstrap. It's a simple website for marketing purposes, but the client wants a blog that he can edit himself. So I am now looking for the best way of achieving this.

At first I considered Jekyll, since I don't have php or backend knowledge, but using markdown and pushing changes to Github may be daunting for the client, so I changed my mind.

So I am now actually considering Wordpress. The first resource I found is this: https://codex.wordpress.org/Integrating_WordPress_with_Your_Website but I am missing some of the steps (PHP pages and such). So far I have been following the front-end track on treehouse.

I found a hosting service with one-click installation and database with cPanel, so I think it does most of the heavy lifting, but I'm still not sure this is the best option.

So, any thoughts, or tutorials you have followed, or treehouse courses? I have started the "Getting started with Wordpress", but time is of the essence, hence why I decided to ask while I do my own research.

Thanks!

4 Answers

Jeff Lemay
Jeff Lemay
14,268 Points

You could use a lightweight CMS for the blog section. Some examples:

EDIT: this would be instead of Wordpress

Kevin Korte
Kevin Korte
28,149 Points

Domain structure has a different answer. What does the client want, blog.mydomain.com or mydomain.com/blog?

Juan García
Juan García
10,723 Points

Hi guys, thanks for the answers!

Jeff Lemay I am already checking the documentation on Couch!

Kevin Korte I think the client would accept both. Do you recommend one over the other?

Kevin Korte
Kevin Korte
28,149 Points

No, either is fine. It just changes how you install the CMS, so it may help you.

blog.mydomain.com would be a subdomain, basically meaning this subdomain is completely separate from the mydomain.com space, as far as the server goes. It makes it very easy to install whatever you want/need, since it basically acts like a new site.

mydomain.com/blog would mean you would install the CMS in the same domain space as the mydomain.com, just in a subdirectory. So as long as the CMS can do subdirectoy installs (I know WP can), you're fine there too. If it can't, you'd be force to use a subdomain, but either way would work just fine.