Skip Navigation

[Resolved] Creating a custom sidebar for custom post type

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am trying to use Astra Pro and Toolset to display custom content on my site. I want to make a custom sidebar to go along with my custom post type. I'm just trying to display a navigation widget in the sidebar of my custom posts.

Solution:

I suggest you use Toolset Layouts plugin to setup your custom sidebar.

For example, edit the post in wordpress admin side:

click button "Edit this layout", you will see Theme Options "Sidebar", choose option "No sidebar", then you will get a full width layout, in this layout, add a widget area cell, and display the specific sidebar.

More help:

https://toolset.com/documentation/user-guides/widget-area-cell/

Also you can setup your own sidebar by adding a grid cell, and add specific widget cells.

Relevant Documentation:

https://toolset.com/documentation/user-guides/learn-creating-using-grids/
https://toolset.com/documentation/user-guides/widget-cell/

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#922179

Tell us what you are trying to do?
I am trying to use Astra Pro and Toolset to display custom content on my site. I want to make a custom sidebar to go along with my custom post type. I have no idea how to do it! I'm just trying to display a navigation widget in the sidebar of my custom posts.

Is there any documentation that you are following?
Yes, I have read all the pertinent Astra documentation and Toolset documentation. What I have learned is that the theme controls the sidebar. In Astra Pro customizer, there is no setting for "what widgets do you want in the sidebar of your custom post type?" In the Toolset documentation, it says I can make a page layout with the Layouts module, but I don't know anything about code, and there's no drag-and-drop page layouts editor that I can find. Do I have to sign up for a page-builder plugin too? I don't know how to use Hooks or if that is the right path to take. Nothing in the documentation actually says HOW to make a page with a sidebar you can set with custom content just for custom posts. Please help!

Is there a similar example that we can see?
No, because everyone else on the Internet seems to know how to do it right.

What is the link to your site?
hidden link
hidden link is a custom post type. I just want different widgets in the sidebar on those pages.

#922331

Hello,

I suggest you use Toolset Layouts plugin to setup your custom sidebar.

For example, edit the post in wordpress admin side:
hidden link
click button "Edit this layout", you will see Theme Options "Sidebar", choose option "No sidebar", then you will get a full width layout, in this layout, add a widget area cell, and display the specific sidebar.

More help:
https://toolset.com/documentation/user-guides/widget-area-cell/

Also you can setup your own sidebar by adding a grid cell, and add specific widget cells:
https://toolset.com/documentation/user-guides/learn-creating-using-grids/
https://toolset.com/documentation/user-guides/widget-cell/

#922544

Thank you so much!!! The Astra team recommended a free plugin which does what i want (https://wordpress.org/plugins/sidebar-manager/) and I'm going to use that, but I REALLY appreciate you explaining me how to do it in layouts with the widget cells. That's exactly what I was asking. Thank you, Luo!

#922772

You are welcome