Support » Theme: Striker » Hiding tags and Posted In

Viewing 1 replies (of 1 total)
  • Balint Toth



    It is completely possible, however it needs a little bit of PHP coding, but nothing dangerous.

    First of all, you will need to create a child theme, this ensures that the customizations we are going to make, will remain if you update the theme or WordPress.
    You can find a very detailed instruction how to create a child theme here: but if you need any help, I am here to help you.

    The second step is to open your site with an FTP editor, go to wp-content/themes/striker/ folder, and copy the content.php to your child theme’s folder (it should be wp-content/themes/striker-child/). Open the content.php file in the child theme folder with a code editor, and search for these 2 parts:

    On the top part of the file (at me it is at line 13, but yours can be different), find this:

    <?php if ( 'post' == get_post_type() ) : ?>
    		<div class="entry-meta">
    			<?php striker_posted_on(); ?>
    		</div><!-- .entry-meta -->
    		<?php endif; ?>
    	</header><!-- .entry-header -->

    and delete the entry-meta div completely, so it should look like this:

    <?php if ( 'post' == get_post_type() ) : ?>
    		<?php endif; ?>
    	</header><!-- .entry-header -->

    The second part is about at the end of the file (at me it is from line 30 to 60):
    it begins with
    <footer class="entry-meta">
    and end with
    </footer><!-- .entry-meta -->

    Now delete everything inside those two lines, including them, so after the deletion there will be no <footer> part at all.

    This should remove the posted by and tags info from every page where are multiple posts listed. If you want to remove these from single posts also, just let me know. Also, if you need any help regarding this, I am here to help you.


Viewing 1 replies (of 1 total)
  • The topic ‘Hiding tags and Posted In’ is closed to new replies.