Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author web-able

    (@web-able)

    There is no need of javascript to achieve this ??
    You only need to edit \views\shortcodes\bettings.php
    Replace line 70 with:
    <span class="toggle-btn" id="bet-event--<?php echo $bet_event['bet_event_id']; ?>"><?php esc_attr_e('+', 'BetPress'); ?></span>

    Also replace line 76 with:
    <div class="bet-event-container" id="bet-event-container-<?php echo $bet_event['bet_event_id']; ?>" style="background-color: <?php echo $bet_event_container_bg; ?>; display: none">

    Some explanation:
    On line 70 we’ve just changed the “-” sign with “+”. And on line 76 we’ve just added “; display: none” at the end of the “style” attribute. That’s all we have to do because the way the JS code is implemented is flexible enough to not be affected by these changes we’ve just made.

    Hello,

    and if it is possible to make events not collapsed by default

    link

    and you could drop me a code example?

    thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bets not collapsed as default.’ is closed to new replies.