Jump to content


Titanium Theme: Sidebar Registration Code

titanium register_sidebar

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 Guest_Brandon Dove_*

Guest_Brandon Dove_*
  • Guests

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

#2 Ronald

Ronald

    Forum Admin

  • Administrators
  • Others: All Plugins, All Themes, Moderators, Webdesign
  • 29,728 posts

Posted 14 November 2012 - 03:13 PM

Thanks Brandon,

Join the iThemes Builder Community on Google+.



To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. Please also read the forum guidelines.



When asking your question/posting your request on the forum, please be as concise and specific as possible. The shorter your request, the more to the point, the more specific, the easier it will be for us to try and help out.