sitepoint / wp_theme_basetheme

Base theme for WordPress components
9 stars 1 forks source link

Coding standard #18

Closed sakinshrestha closed 8 years ago

sakinshrestha commented 8 years ago
justintadlock commented 8 years ago

I actually want to comment and say that I disagree with Sakin here. Numeric IDs are harder to remember when coding. Unique names are far easier for me to remember. So, it's a difference in philosophy. :)

Additionally, menus don't work like that. Sidebars do but menus don't. Menus are tied to a specific theme. And, even though sidebars do work like that, there's no standard naming scheme that most theme authors follow.

I think it's best to find something that you can consistently use as a developer. I personally use primary, secondary, etc. when naming menu locations and sidebars.

sakinshrestha commented 8 years ago

Justin, actually I have taken this from Theme User Experience Requirements

I agree with you that it's difficult to remember numeric names but this is recommended as for consistency between themes. Also since this is base theme, I think this should be used.

mrlagmer commented 8 years ago

closed by #45