Hello,
How do I display one of the sidebars I’ve created in X/Pro using PHP? get_sidebar doesn’t seem to work.
Thank you!
Alex
Hello,
How do I display one of the sidebars I’ve created in X/Pro using PHP? get_sidebar doesn’t seem to work.
Thank you!
Alex
Hi Alex,
Thank you for writing in, are you trying to assign a custom sidebar to a specific page? You can do that without a custom code on the sidebar panel.
If you prefer to continue using customazation use the dynamic_sidebar( );
function to output your custom sidebar.
Function Reference/dynamic sidebar
e.g.
<aside class="custom-sidebar">
<?php if ( is_active_sidebar( 'ups-sidebar-my-custom-sidebar' ) ) : ?>
<?php dynamic_sidebar( 'ups-sidebar-my-custom-sidebar' ); ?>
<?php endif; ?>
</aside>
Please do note that this is customization and we cannot provide further support for this.
Hope it helps,
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.