Mark McDonald
asked 10 years ago

I do not want to have a comment and review tab on my EDD store pages. Is there a way to remove this from the Argo theme?

1 Answers
Kido D
answered 10 years ago

Hi Mark,  
To remove ‘comment and review’ function on EDD store, you can open up the single-download.php file in themes/dw-argo folder, find the code below (around line 12):  

 <div class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#lA"><?php _e('Description','dw') ?></a></li>
<li class=""><a data-toggle="tab" href="#lB"><?php _e('Review','dw') ?></a></li>
</ul>
<?php while ( have_posts() ) : the_post(); ?>
<div class="tab-content">
<div id="lA" class="tab-pane active">
<?php get_template_part( 'content-single-shop', get_post_format() ); ?>
</div>
<div id="lB" class="tab-pane">
<?php comments_template(); ?>
</div>
</div>
<?php endwhile; ?>
</div>

  and change it into this:  

 <?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-single-shop', get_post_format() ); ?>
<?php endwhile; ?>

  Hope that helps!

Solo P
replied 10 years ago

Thanks for this.

Powered by DW Question & Answer Pro