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

Corey Lyons
Corey Lyons
24,684 Points

Wordpress Theme Development

I am building a Wordpress theme from Bootstrap html templates and it is for my portfolio site. I am wondering if it is best practice to leave certain things hardcoded in the template or to add the PHP code to make it dynamic? Some pages I am going to want the option to update in the admin area of Wordpress. For example, I have an image area I want to look a certain way in the about page Bootstrap template and I want to use a JavaScript function to switch the images (These images I was thinking of hardcoding in). On another page I want to display code snippets with dismissable popovers via Bootstrap, while another page I am using Panels to display my contact info. Should I widgitize these areas or what is the best way to do this if I want to edit the content in the admin area? Any feedback would be appreciated!

use dynamic not static, i found it easier too us dynamics for images as this will allow your final theme to be changed alot easier.

1 Answer

Garrett Sanderson
Garrett Sanderson
12,735 Points

It is probably best practice to keep things as dynamic as possible. Either widgitize areas or create different post types and pull from those post types with different loops and such. There are also a lot of plugins that you can download to add a lot of dynamic functionality.