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

In the sidebar template, can we get the sidebar name/id to be output with the sidebar? #1482

Closed
benlk opened this issue Jan 25, 2018 · 0 comments

Comments

@benlk
Copy link
Collaborator

benlk commented Jan 25, 2018

Basically: during debug work, it would be nice to know which sidebar is being output on which page.

Things that might need to be modified:

  • partials/sidebar-archive.php
  • partials/sidebar-single.php
  • partials/sidebar.php
  • partials/sidebar-fallback.php

What would be really nice is if there was a way for the function dynamic_sidebar() in WordPress core to be filtered to output the sidebar name as a comment. Maybe that can be accomplished by an argument when we register those sidebars?

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

1 participant