larkmeadictsupport

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Calendar Widths #906121
    larkmeadictsupport
    Participant

    Hi,
    Thanks for the further update, within the default-template.php I have the following code below. It doesn’t make any difference to the layout of the calendar though, it is still showing full screen. Apologies if I’m not getting this, as mentioned before we aren’t experienced with php so maybe need more detailed instructions.
    Thanks 🙂

    <?php
    /**
    * Default Events Template
    * This file is the basic wrapper template for all the views if ‘Default Events Template’
    * is selected in Events -> Settings -> Template -> Events Template.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
    *
    * @package TribeEventsCalendar
    *
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    }

    get_header(); ?>
    <div id=”tribe-events-pg-template”>
    <?php tribe_events_before_html(); ?>
    <?php tribe_get_view(); ?>
    <?php tribe_events_after_html(); ?>
    </div> <!– #tribe-events-pg-template –>
    <?php get_footer(); ?>

    <div class=”container”>
    <div class=”row”>
    <div class=”col-sm-12″>
    </div></div></div>

    in reply to: Calendar Widths #905036
    larkmeadictsupport
    Participant

    Hi,
    Thanks for the information.
    I have created a duplicate default-template.php in our theme folder but having issues with the next step. You say you can customise the template and our theme is using bootstrap so we could wrap the calendar in the bootstrap grid. Does this mean we should add the code you have suggested into the default-template,php in our themes folder or somewhere else? Sorry, we aren’t experienced php users 🙁

    We tried forcing the width using CSS, which worked but when viewing on a tablet or phone it makes the calendar look like a thin stick, it also screws up the responsiveness of the calendar when viewing on a PC or laptop 🙁

    Any help/advice greatly appreciated.

Viewing 2 posts - 1 through 2 (of 2 total)