-
Author
-
November 10, 2014 at 14:21 #34882govindParticipant
Hi ,
I wanted to display testimonials in home page with readmore link . Now its showing all the testimonials content showing.
And I kept separate menu for testimonials. I have created page and i have inserted testimonial element. Am not able to change it to full width template. And also,If I add revolution slider also, its not showing up in that page.
Also i want to hide the author of testimonials in front end (now its showing as admin)
Attachments:
You must be logged in to view attached files.November 11, 2014 at 02:43 #34972KamalModeratorHi,
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:COPY CODEbody.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:
COPY 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,
KamalHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.November 11, 2014 at 07:47 #34978govindParticipantHi
Thanks, it works. But in testimonials page i have chosen fullwidth template, but its coming as default.Also, i have added revolution slider for this page. its not showing. where should i edit these.
Also, while clicking readmore of testimonials, its showing author name. help me to fix it.
Attachments:
You must be logged in to view attached files.November 11, 2014 at 19:40 #35072KamalModeratorHi @govind,
1. You can hide the author name on both pages by using the following code. Please replace the previous code with this new code on your style.css file.
Please replace old code by this new code:COPY CODEbody.post-type-archive-kleo-testimonials .meta-author, body.single-kleo-testimonials .meta-author{ display:none !important; } body.single-kleo-testimonials time.entry-date { padding-right: 4px; }
I hope this will give you the desire result. I have added a screenshot also.
2. If you want to show any content like slider etc. to fullwidth on a fullwidth layout, then you need to add a row first and then edit that row setting and set the inner container setting to “no” which is by default is “yes”. and then you can put any thing in that row and content inside that row should show up in fullwidth. If you still have problem, please ask me anytime. Thanks. 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.November 12, 2014 at 07:36 #35157govindParticipantHi Sir,
THanks,
Full width template for testimonials not working for me. I have set up slider also its not showing in front end.attached screenshot
Attachments:
You must be logged in to view attached files.November 12, 2014 at 17:34 #35222KamalModeratorHi,
You are most welcome. and it is really strange. It works in my end but I do not understand why it is not working on your end though it should work. Did you check your site with other browser? and you better try it again after clearing all cache,cookies everything of your browser. If this does not solve your problem, then you can give me a temporary access to your site and then I will have a closer look at your problem.
Thanks,
KamalHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.