Replying to Titanium Theme: Sidebar Registration Code
Topic Summary
Ronald
Posted 14 November 2012 - 03:13 PM
Thanks Brandon,
Posted 14 November 2012 - 01:37 PM
I was working on a site for someone who's using the Titanium theme. I just wanted to give you some feedback on something that was a pain point for us during development.
In your sidebar registration code, you don't make use of the string formatting placeholders for widget ids and classes. As you can see in the codex entry here: http://codex.wordpress.org/Function_Reference/register_sidebar#Parameters, the before_widget argument allows for sprintf type formatting. This allows for some really specific css selectors where necessary. It would be nice to see you guys implement these. I've provided example code for Titanium below.
See modified code here:
https://gist.github.com/4074102
thanks!
Brandon
In your sidebar registration code, you don't make use of the string formatting placeholders for widget ids and classes. As you can see in the codex entry here: http://codex.wordpress.org/Function_Reference/register_sidebar#Parameters, the before_widget argument allows for sprintf type formatting. This allows for some really specific css selectors where necessary. It would be nice to see you guys implement these. I've provided example code for Titanium below.
See modified code here:
https://gist.github.com/4074102
thanks!
Brandon

