Customize how a WordPress theme looks like in the Theme Selector

You need to create a screenshot.png and store it in the theme directory. See the directory for the TwentyTen theme: (source: mikeschinkel.com) That of course looks like this: (source: mikeschinkel.com) UPDATE To update the theme name, author, and description you modify the header of the style.css file. Take the one from TwentyTen as an example; … Read more

What is the meaning of WordPress’s recommended css classes and where are they applied?

These classes are generated by WordPress. For instance, if a user inserts an image in his post and says it must be aligned right, WP will generate code like this in the post: <img class=”alignright” src=”https://wordpress.stackexchange.com/questions/247130/…”> Now, if your theme doesn’t define the alignright class, the image won’t be aligned right and the user won’t … Read more

GPL 2 Theme using a framework for commercial Theme?

Short answer: You may change everything as long as you keep the same license. No credit is actually required. But it is polite. I would add it in the stylesheet under the notes section with a link back to the original. Provide the original author and link to the source. Something like “Based on the … Read more

How do I set a custom page template for a custom post type?

I went through the same problem a few months back. After several different ways I finally found a way that worked. Try adding this to your themes functions.php file (be sure to replace both instances of portfolio to match the actual names you use): <?php add_action(“template_redirect”, ‘your_cust_pt_redir’); function your_cust_pt_redir() { global $wp; global $wp_query; if … Read more

Customizing page content layout

Disclaimer: I have no affiliation with this plugin nor its author, it’s just a plugin I’ve found to be indispensable in my WordPress tool kit. So this is not an advertisement for a plugin. The plugin you want is: Advanced Custom Fields. It’s a free plugin that’ll make your life a lot easier for varied … Read more