Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    Hi Lisbeth,

    Thanks for including the link.

    This happens because the full testimonial post uses your theme’s single blog post template. Every theme is different so there’s no universal way for my plugin to handle it.

    The simplest solution is to make a custom testimonial template in a child theme and remove the author line in it. This also makes future modifications easier and prevents theme updates from overwriting your changes.

    The process is a bit technical. I would be glad to outline the steps involved. If you prefer, I can do it for you. Let me know how you want to proceed.

    Chris

    Thread Starter LKJohannsen

    (@lkjohannsen)

    Hi Chris, thank you for your quick answer. I would really appreciate it if you would outline the steps involved. I′m working in a child theme already.

    Best regards

    Lisbeth

    Plugin Contributor Chris Dillon

    (@cdillon27)

    In looking deeper at that theme, it prints those entry meta fields in a function which requires a different approach.

    Edit /accelerate/inc/functions.php and find function accelerate_entry_meta() at line 248. Copy the whole function down to the closing } at line 310. Paste that code into your child theme’s functions.php.

    You’ll see <span class="byline">...</span> at the top of that function. That’s the line you want to remove for testimonials. So add this check for the wpm-testimonial post type like so:

    function accelerate_entry_meta() {
    	echo '<div class="entry-meta">';
    	if ( 'wpm-testimonial' != get_post_type() ) :
    	?>
    	<span class="byline"><span class="author vcard"><i class="fa fa-user"></i><a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo get_the_author(); ?>"><?php echo esc_html( get_the_author() ); ?></a></span></span>
    	<?php
    	endif;
    ...

    The two added lines are
    if ( 'wpm-testimonial' != get_post_type() ) :
    and
    endif;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get rid of the Author in Strong Testimonials’ is closed to new replies.