Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor ModDish

    (@moddish)

    thats not part of the plugin, your themes single.php file is adding the date.

    add something like this around the date to hide it on product pages

    <?php if (get_post_type( $post->ID ) != 'grid_products' ){ ?>
    date code here
    <?php } ?>

    if you want to show something on a product page ( like the featured image ) do the opposite featured image example :

    <?php if (get_post_type( $post->ID ) == 'grid_products' ){
    $theimage=wp_get_attachment_image_src( get_post_thumbnail_id($post->ID) , 'product-image');
    ?>
    <img class="alignright size-thumbnail wp-image-181" style="margin-left: 10px; margin-right: 10px;" alt="" src="<?php echo $theimage[0]; ?>">
    <?php } ?>
    Thread Starter bellaqueen

    (@bellaqueen)

    I’m using the default Twenty Twelve Theme. There’s no date function in the single.php file. ??

    Thread Starter bellaqueen

    (@bellaqueen)

    Thank you…I managed to do it somehow ??

    How did you solve this? I would like to delete both the date and author on the product display page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove Date and Time?’ is closed to new replies.