How to add a sidebar?

Support MB Views How to add a sidebar?Resolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #39379
    EddyPiVEddyPiV
    Participant

    Hi,

    I'm trying to understand how to add a sidebar in a singular view rendering the layout between header and footer. I can't find anything in the documentation or in the support forums on it.
    I see a fieldtype sidebar, but that adds a sidebar to an individual post... I don't understand the use of that as well.

    So I'm quite in the dark, hope you can share some light on this subject.

    Thanks.

    #39382
    EddyPiVEddyPiV
    Participant

    I managed to get it to my liking.

    #39394
    PeterPeter
    Moderator

    Hello Eddy,

    You can use the WordPress function get_sidebar() to get the sidebar in the view template.
    {{ mb.get_sidebar() }}

    Refer to the documentation https://developer.wordpress.org/reference/functions/get_sidebar/

    #39475
    EddyPiVEddyPiV
    Participant

    I found that, thanks Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.