How to not show dates and author on certain pages?

Posted in: Newspaper
Post count: 57

Hello,

I have installed a glossary tooltip plugin for the definitions section of my site. This plugin uses the newspaper 9 post theme template to create each term page. However, how can I not show the date and author for these definition pages, but keep showing them on my regular post pages? I have emailed the tooltip plugin company as well, however, because they are using your theme’s template I thought I should email you as well. Here is one of my site’s definition term pages: https://www.techsiting.com/definition/vram/. Below is the php code of the term page, please help:

<?php get_header(); ?>
<div id=”left-area”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php echo apply_filters(‘cmtt_glossary_template_before_title’, get_option(‘cmtt_glossaryCustomTemplateBeforeTitle’, ‘Term: ‘));?><?php echo get_the_title() ?></h1>
<?php if (has_post_thumbnail()) : ?>
” title=”<?php the_title_attribute(); ?>”>
<?php the_post_thumbnail(); ?>

<?php endif; ?>
<?php the_content(); ?>
<?php
endwhile;
endif;
?>
</div>
<?php get_sidebar(); ?>
<?php
get_footer();

  • This topic was modified 7 years by Kingx26.
  • This topic was modified 7 years by Kingx26.
Post count: 20688

Hi,

So you want to not show the date and author in posts such as that one, glossary templates. The simplest way would be to use some CSS – http://prntscr.com/moix4x
This should not affect other posts – http://prntscr.com/moix8j

You could give it a try

.single-glossary article .td-module-meta-info {
display: none;
}

Thanks

Post count: 57

Thank you! I am also moving my second site to your newspaper theme. I’m sure this is simple to do, but I cannot seem to remember how to not show the page title in the upper left corner on pages. How is that done again?

Post count: 35449

Hi,

You’ll need to use a default page template or Page Builder + Latest Articles + Pagination, please check our documentation -> https://forum.tagdiv.com/page-templates-2/

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.