Hi,
1. If you want to show a portion of text of your testimonial on your homepage, you need to edit the shortcode template for testimonial and add some custom css to adjust the style. It is a bit complicated task. You may need to hire a developer to accomplish this task. By the way, the templates for shortcodes are found in wp-content/plugins/k-elements/shortcodes/templates folder. If you do want to edit and customize it then you need to copy it in the child theme under k_elements folder.
2. If you want to hide the author name on testimonial page eg. on the page you showed in the screenshot, then you need to do two things.
First: You need to add some css to the style.css file of KLEO Child Theme. You can edit the style.css file from Apprearance>Editor>style.css. Please copy and paste the following css code to that file and save it. Here is CSS code:
body.post-type-archive-kleo-testimonials .meta-author{
display:none !important;
}
Secondly: You need to copy and paste the following code to the functions.php file of KLEO Child Theme. You can edit this file from Appearance>Editor>functions.php. Please copy and paste the following code and the save the file. Then visit your site and it should give you the desired result. Here is the code:
/**
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
* Create your own kleo_entry_meta() to override in a child theme.
* @since 1.0
*/
function kleo_entry_meta($echo=true, $att=array()) {
$meta_list = array();
// Translators: used between list items, there is a space after the comma.
$categories_list = get_the_category_list( __( ', ', 'kleo_framework' ) );
// Translators: used between list items, there is a space after the comma.
$tag_list = get_the_tag_list( '', __( ', ', 'kleo_framework' ) );
$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$author = sprintf( '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'kleo_framework' ), get_the_author() ) ),
get_the_author()
);
$meta_list[] = '<small class="meta-author">'.$author.'</small>';
$meta_list[] = '<small>'.$date.'</small>';
$cat_tag = array();
if ( $categories_list ) {
$cat_tag[] = $categories_list;
}
if ($tag_list) {
$cat_tag[] = $tag_list;
}
if (!empty($cat_tag)) {
$meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>';
}
//comments
if (!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) {
$meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments">'.get_comments_number().' <i class="icon-chat-1 hover-tip"
data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'"
data-toggle="tooltip"
data-placement="top"></i></a></small>';
}
if ($echo) {
echo implode(" ", $meta_list);
}
else {
return implode(" ", $meta_list);
}
}
I have tested on my site. I works just fine. I have added two screenshots so that you can see how it will look after you do this perfectly. If you have any more questions, you can ask me any happily 🙂
Thanks,
Kamal