Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thematic_sidebar() for specific get_sidebar($name); #14

Open
helgatheviking opened this issue Aug 7, 2012 · 2 comments
Open

thematic_sidebar() for specific get_sidebar($name); #14

helgatheviking opened this issue Aug 7, 2012 · 2 comments

Comments

@helgatheviking
Copy link
Contributor

can this be filtered to show a different sidebar so that if people want a custom sidebar on the "archive" template, they don't have to create a child archive.php they can filter thematic_sidebar. can we pass it a 2nd parameter?

@middlesister
Copy link
Member

Sure, what do you have in mind?
At the moment the filter is a true/false switch to turn the main sidebar (primary & secondar) on and off, i.e. the standard sidebar.php. How would the easiest way be to let people use their own sidebar?

@helgatheviking
Copy link
Contributor Author

well we have get_sidebar('page-top.php') and the like. so i am thinking that that $name variable should be filterable.

maybe?

get_sidebar(apply_filters('thematic_default_sidebar', NULL));

much more pressing is that you fix the dev branch! :) and then tell me how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants