Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter blackjak231

    (@blackjak231)

    I’ve found a solution, but i’m not sure that it’s the way to go…

    Basically, i created a template for the single event page and added a verification to check if the displayed page was the list or not. Here is a code example:

    <?php
    /*
    Template Name: 3 colonnes
    */
    ?>
    
    <?php if(!tribe_is_list_view()){ ?>
    /*The template i want to show for the single event page*/
    <?php }else{ ?>
    /*The template i want to show for the list*/
    <?php get_template_part('templates/content', 'page'); ?>
    <?php } ?>

    I also edited the plugin’s template for each event shown in the list.

    I thought i would share this solution in case anyone is looking for the same thing!

    Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi blackjak231,

    Thanks for sharing! I’m glad you were able to find something that worked for you.

    As outlined in our forum guidelines, we aren’t able to help with these kinds of customizations. But we do have some handy resources that might be helpful for you:

    ? Themer’s Guide – provides an overview of how to customize the plugin’s frontend appearance.
    ? Tutorials – useful tips and tricks for changing how the plugin looks and behaves.
    ? Technical Docs – provides an overview of the classes and functions in each plugin

    Good luck, and thanks for using The Events Calendar!

    ~Leah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different page templates for list view and single events?’ is closed to new replies.