• Resolved Graham Wickham

    (@merlin2s)


    Hi
    Firstly let me say I am no expert but willing to give things a shot.

    I have the theme Ocean WP installed and the events calendar setup so that it creates the page “events” but I have not set up a page myself called events and just a menu button linking to that page on the main menu bar.

    When you go to the “Events” page the theme overrides the events calendar and I end up with the website sidebar on the events calendar.

    I would like to have the “events” page and any event you go into to be full width but the rest of my site to keep the sidebar.

    I have tried the events calendar settings “Default Events Template” setting but still have the sidebar.

    Is there a way to edit the “Default Events Template” so that it overrides the website theme. Where is this template located and do I need to go on a programming course first or will it be simple to edit?

    Is this the best way to achieve my goal or is there a simpler way?

    Many thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    Thanks for reaching out 😀

    Sorry about the wait! We’ve seen a surge in support requests lately.

    It seems that OceanWP has their own custom events templates that are used for our plugins, and they hard-code the sidebar area in. To prevent this, you will need to create a custom template with that removed.

    To do this, copy the file from wp-content/themes/oceanwp/tribe-events/default-template.php into your child theme, in [your-child-theme]/tribe-events/default-template.php, and comment out or delete the line of code that outputs the sidebar ( do_action(‘ocean-display-sidebar’); )

    Take care,
    Ed 🤘

    I am experiencing a similar issue to this except I am using the Customify theme. I would like to have a sidebar appear on all my other post and archive pages except for the
    Events Calendar page.

    Here is the page that I want to remove the sidebar from:
    http://musicindustryconferences.com/upcoming-conferences/

    Thread Starter Graham Wickham

    (@merlin2s)

    Ed
    Just to let you know that the
    wp-content/themes/oceanwp/tribe-events/default-template.php
    does not have the line

    sidebar ( do_action(‘ocean-display-sidebar’); )

    the entire file is as follows –
    <?php
    /**
    * The Events Calendar plugin template.
    *
    * @package OceanWP WordPress theme
    */

    get_header(); ?>

    <?php do_action( ‘ocean_before_content_wrap’ ); ?>

    <div id=”content-wrap” class=”container clr”>

    <?php do_action( ‘ocean_before_primary’ ); ?>

    <div id=”primary” class=”content-area clr”>

    <?php do_action( ‘ocean_before_content’ ); ?>

    <div id=”content” class=”site-content clr”>

    <?php do_action( ‘ocean_before_content_inner’ ); ?>

    <div id=”oceanwp-tribe-events”>
    <?php tribe_events_before_html(); ?>
    <?php tribe_get_view(); ?>
    <?php tribe_events_after_html(); ?>
    </div>

    <?php do_action( ‘ocean_after_content_inner’ ); ?>

    </div><!– #content –>

    <?php do_action( ‘ocean_after_content’ ); ?>

    </div><!– #primary –>

    <?php do_action( ‘ocean_after_primary’ ); ?>

    </div><!– #content-wrap –>

    <?php do_action( ‘ocean_after_content_wrap’ ); ?>

    <?php get_footer(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Editing the “Default Events Template” for full width’ is closed to new replies.