7 posts
  • 2 Years of Membership
  • Exclusive Author
  • United Kingdom
richardsonweb
says

Hey everyone,

I’m halfway through knocking up a theme for Wordpress, and I was just wondering if anyone had any tips for someone about to sell for the first time?

I normally develop custom post types, field types etc. by hand, but do people here normally use plugins for things like this?

What about ensuring that the user can customise the style of the site themselves? Do people rely on creating custom “css.php” files, or do they use something like option tree instead?

Thanks in advance for your advice!

789 posts Magento Elite & Gravity Maker
  • Elite Author
  • Author Level 8
  • United States
  • 5 Years of Membership
+4 more
GravityDept
says

Buy a few themes and study them (just don’t “borrow” anything). You’ll be able to learn a huge amount about what makes themes good and usable for end-users. It’ll absolutely be worth a hundred bucks in the time you’ll save thinking of everything the hard way.

7 posts
  • 2 Years of Membership
  • Exclusive Author
  • United Kingdom
richardsonweb
says

Thanks for the response! Sounds like a good idea.

Do you have any suggestions for how to handle things like custom fields, etc?

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 more
tommusrhodus
says
7 posts
  • 2 Years of Membership
  • Exclusive Author
  • United Kingdom
richardsonweb
says

Custom fields: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress

Theme Options:

http://codex.wordpress.org/Theme_Customization_API

Oh brill, thanks for these!

Is it good practice to put things like the ability to change global fonts / layout changes into this menu as well, or should things like that be held in a custom options menu within the admin menu?

If so, any tips or best practices for implementing something like this, from a code perspective?

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 more
tommusrhodus
says

In my opinion all global settings should be added to the Theme Customizer rather than a separate options panel / page. why? Well then you’ll never have to update your theme because a WordPress update broke your options panel!

Any post specific settings should be added as post meta (custom fields) where appropriate, but try to be sparing here.

As for font choices, this plugin integrates with the Theme Customizer:

https://wordpress.org/plugins/easy-google-fonts/
by
by
by
by
by
by