Remove meta data?

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 7 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23580

    Hi how do i remove the following meta data from showing up on the events page?

    enter image description here

    Jade Deverill
    #23581

    Hi Jade,

    This will be the theme that’s adding that in.

    You can copy your theme’s single.php and call it single-event.php and then remove the part displaying the metadata. Then add this line where you want the event details to appear:

    <?php eo_get_template_part('event-meta','event-single'); ?>
    
    Stephen Harris
    #25045

    Hi that doesn’t seem to work. It seems to affect –

    the stuff below ‘event details’ and below. where as I want to remove –

    Posted On 19 Nov 2016
    By Jade
    In
    

    This is the contents of the single.php in my theme –

        <?php
    get_header();
    $col= 'col-md-12';
    if ( is_active_sidebar( 'sidebar' ) ) {
        $col = 'col-md-8';
    }
    ?>
    <div class="row">
        <div id="content" class="site-content <?php echo $col; ?>" role="main">
            <?php /* The loop */ ?>
            <?php if(have_posts()){ while ( have_posts() ) { the_post(); ?>
            <?php get_template_part( 'post-templates/content', get_post_format() ); ?>
            <?php zee_post_nav(); ?>
            <?php blog_comments(); ?>
            <?php } } ?>
        </div><!--/#content -->
        <?php get_sidebar(); ?>
    </div>
    <?php get_footer();
    
    Jade Deverill
    #25047

    Hi Jade,

    The meta data is probably coming from the post-templates/content template. You can either remove it from there (but that will effect non-event posts) or create an edited copy and include that from your single-event.php.

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.