Okay
  Public Ticket #1883603
Event Tab Combination
Closed

Comments

  • kyleherbstascend started the conversation

    Hey there,

    I was wondering if there's an easy fix to combine the shop, location, and information tabs on the agenda view. Our client would like to see all of the information on a single page once the event is clicked. Is this possible?

    Also, is there any way to disable the product links on the shop section? Thanks!

    Kyle

  •  878
    Zhivko replied

    Hi,

    Go to Dashboard -> St. Event Calendar -> General and set "Open events in" to "Single Page".

    In yout theme functions.php file add:

    // Set shop tab to be first
    add_filter('stec_event_tabs', function($tabs) {
        $shop_tab;
        foreach ($tabs as $k => $tab) {
            if ($tab[0] === 'shop') {
                $shop_tab = $tab;
                unset($tabs[$k]);
            }
        }
        array_unshift($tabs, $shop_tab);
        return $tabs;
    });

    This will move the shop tab to first position and this way introduction location and shop content will be visible all together.


    Stachethemes Developer