BuddyBoss Home – Web Support Forums Solutions Social Learner Widget Logic and Course Sidebars

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #60414

    Hi folks,

    I’m using the Widget Logic plugin to display different sidebar content at different times (i.e.: logged-in vs. logged-out). It works great.

    I’m wondering: is there a way to use this method to display different sidebar content on different Sensei courses? For example, display a link to Woocommerce product A on Course 1 sidebar, and Woocommerce product B on Course 2 sidebar… It seems like this should be possible with conditional tags, but I’m not sure how to do it.

    Any thoughts? I think this could be really useful.

    Answers

    #60424

    Anonymous
    @

    Hi @davejay, You can register new sidebars to display them on different courses.

    https://codex.wordpress.org/Function_Reference/register_sidebar

    Regards

    #60480

    Thanks, Pallavi. I see from your link how to register a new sidebar and give it some default HTML, but how do you assign it to appear only on a specific Sensei course?

    #60493

    Actually, Pallavi, I figured this out using conditional tags in Widget Logic. Just drop in is_single( 'post-id' ) in the logic field, and change ‘post-id’ to the ID for the specific course. Works like a charm!

    #60716

    Anonymous
    @

    Glad you got the solution!!

    #60717

    Anonymous
    @

    Great 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Widget Logic and Course Sidebars’ is closed to new replies.