Support for Envato Buyers Forums DGWork Two Blog Questions

Viewing 3 reply threads
  • Author
    Posts
    • #11824
      bdendas
      Participant

      1. How do I make the profile picture for an author in the blog non-clickable

      2. How do I delete / hide the comments section.

      Example: http://imgur.com/a/HKpJw

    • #11825

      Hi

      1. If you use child theme, you can put the following custom PHP function into functions.php file

      function dgwork_post_author(){
      	global $dgwork_option;
      	if ( isset($dgwork_option['post_author']) && $dgwork_option['post_author'] == '1' ):
      ?>
          <!--Author-->
      	<section id="author_vcard">
      	<h3 class="author-title section-title"><?php esc_html_e('About Author','dgwork');?></h3>
      	<div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?></div>
      	<p><strong><?php the_author_meta('nickname'); ?></strong>	</p>
      	<?php the_author_meta('description'); ?> 
      	<?php if(class_exists('ThemeVan_Shortcodes')):?>
      	<p><span class="social_icons"><?php do_action('tmvs_author_social_profile');?></span></p>
      	<?php endif;?>
      	</section>
      <?php  
          endif;
      }

      2. You can disable the comment section by WordPress default feature, just quick edit the post, then cancel the “allow comment” checkbox. https://www.dropbox.com/s/poy2m78cefscwt8/Screenshot%202017-06-11%2001.42.03.png?dl=0

      Thanks

    • #11826
      bdendas
      Participant

      Okay instead of during off the clickable image, how do you change the banner of author pages?

      Example: http://imgur.com/a/jxJPc

    • #11827

      The author page uses the global header image setting, so you could change it via Appearance > Customize > Header Image.

      Thanks

Viewing 3 reply threads
  • You must be logged in to reply to this topic.