You can use your custom sidebar where sidebar selection options are available such as page layout, post layout, portfolio layout, product layout, and archive.
To use sidebars in page/post/portfolio/product layouts, refer to this article. See below image for more understanding.