Search code examples
phpwordpressthemessidebar

Confusion involving Dynamic_Sidebar() in Wordpress


thanks for reading.

I understand that dynamic_sidebar() accepts a string parameter what correlates with the sidebar name, for instance here:

<?php dynamic_sidebar( 'bottombar' ); ?>

I'm needing to edit the 'bottombar' code but have no idea where to find it. I can't find documentation that highlights this. Is this within my theme files? Is this in the admin? Where do I find the html to edit sidebar 'bottombar'?

Any idea off the top of your head where this points to?

Thanks for any direction.


Solution

  • Inside your theme's functions.php file, you've registered a sidebar named 'bottombar'. Hence you are able to call dynamic_sidebar('bottombar'); with 'bottombar'.

    Details: Here, read 'Multiple Sidebars' part