custom side bar for a tribe pages

Home Forums Calendar Products Events Calendar PRO custom side bar for a tribe pages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #116266
    rockportart
    Participant

    Im trying to get genesis custom side bar to display on your single pages.
    Ive added
    get_sidebar(); to single event.php

    and then in my functions

    add_action(‘get_header’,’sf_change_genesis_sidebar’);
    function sf_change_genesis_sidebar() {
    if ( tribe_is_event()) {
    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ ); //remove the default genesis sidebar
    add_action( ‘genesis_sidebar’, ‘sf_sidebar’ ); //add an action hook to call the function for my custom sidebar
    }
    }

    function sf_sidebar() {
    dynamic_sidebar( ‘workshop’ );
    }
    A side bar is loading, but is is the regular primary side bar not the workshop one

    #116451
    Barry
    Member

    As an alternative can you call the specific sidebar directly from single-event.php using a dynamic_sidebar() call, specifying the one you want as a parameter?

    #122531
    Barry
    Member

    This thread’s not seen much activity for the last couple of weeks so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘custom side bar for a tribe pages’ is closed to new replies.