1

I am developing a new theme based on my html portfolio. I understand the hierarchy and actually have it working 100% in Wordpress. My confusion comes when trying to figure out the best place to put my html. For example I have an about page and a work page; for these I have just created new pages in the wp editor and inserted the html directly. Not sure this is best practice? Also, for home page I created a new page called home; I then used the loop and pulled in the content via the page-home.php file and also created a customized widget area that works as expected on the same file after the content.

I was hoping for some advice on maybe the best practice for handling where to place the html. Should I be using custom page templates? This is a simple 3 page site with no blog.

Thanks in advance for any advice.

0

You should leave the "content" of a page to the actual content, that is text and images. You shouldn't be pasting custom html, as it is very easy to break and hard to maintain. If you have custom html for a page and don't care about editing it yourself directly, you should be using custom page templates.

You can learn about them here:

https://developer.wordpress.org/themes/template-files-section/page-template-files/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.