WordPress.org

Ready to get started?Download WordPress

Forums

GC Testimonials
[resolved] Urgent! After upgrade testimonials in widget not showing (26 posts)

  1. Alexis403
    Member
    Posted 12 months ago #

    Hello, I just upgraded the GC Testmonial plugin and now my testimonials are not showing in my widget. This is important because my widget is in my footer and showing on every page. I am in the process of promoting my website to get new clients (I am a web designer) and I need my testimonials to be shown correctly. Only the picture and client name are showing in the widget, the testimonial is not there. I have adjusted the character amount, and still nothing please help!

    http://wordpress.org/plugins/gc-testimonials/

  2. Jan Rymarz
    Member
    Posted 12 months ago #

    Hi, I'm no developer and am on my first WP website but have a GC Testimonial widget in my footer which suddenly showed only the people's names and the elipses.

    By playing,I worked out that having a shorter Title fixed everything.

    "Examples of Recent Feedback:" broke the display
    "Examples of Feedback:" fixed it so now it cycles and works fine.

    I hope this helps you too.

    J

  3. Alexis403
    Member
    Posted 12 months ago #

    Thanks for responding. I actually have no titles on any of my testimonials. I didn't like the way it looked in the widget so I removed them some time ago. I just upgraded the plugin today though and now only the people's pictures, names and titles show, still no testimonials. This is so weird. I hope I get help soon! This is stalling my marketing process. I can't send out a website that's not working properly on every page of my site.

  4. Alexis403
    Member
    Posted 12 months ago #

    Also, I meant to give my website so anyone giving help can see it: http://alexistmyers.com/

  5. Jan Rymarz
    Member
    Posted 12 months ago #

    I've had a look but obviously can't see what it used to look like when working :/

    On my site, I display a link to Read More (leads to the full page of Testimonials) but I do not display images.

    Have you tried de-selecting and re-selecting the two options?

    My reasoning is that the area for the widget on your site looks tiny and so it could be as simple as a "low space" thing??

  6. Alexis403
    Member
    Posted 12 months ago #

    Thanks for responding. I just tried both of what you suggested, taking the pictures out and taking the Read More link off. I did that, hit save and still no testimonial words showing. Only the name and title of client. I had the "Read More" link selected before, but it never showed, and now that I deselected it, still nothing happened. I also took out the character limit, I had made it 350, but I took it out and put nothing because it said the default is 250, still nothing. I don't know what's wrong! I hope the owner of the plugin replies with a solution, because this is crazy, and this is the only plugin I like that gives me the sleek look I want on the testimonials page and also the widget that displays the picture along with the cycling testimonials. I just need the words of the testimonials to show up! Everything was working fine before I upgraded.

  7. devnz
    Member
    Plugin Author

    Posted 12 months ago #

    Hi there,

    Im not sure what is causing the issue without having access to your blog, but could you try this and see if it fixes the issue please.

    Open testimonials.php, and at around line 796, find this code:

    if( strlen($testimonial->post_content) > $words) {
    	echo '<div class="content">'.substr(wpautop($testimonial->post_content), 0, $words).'...</div>';
    } else {
    	echo '<div class="content">'.wpautop($testimonial->post_content).'</div>';
    }

    and replace with:

    if( strlen($testimonial->post_content) > $words) {
    	echo '<div class="content">'.substr($testimonial->post_content, 0, $words).'...</div>';
    } else {
    	echo '<div class="content">'.$testimonial->post_content.'</div>';
    }

    If you could post back and let me know if that fixed it or not, that would be great, thanks.

  8. Alexis403
    Member
    Posted 12 months ago #

    That worked! Thanks so much for responding! Now, do you have some code that will make my "Read More" link show? It has never shown since I first installed the plugin, even though I have it selected.

  9. devnz
    Member
    Plugin Author

    Posted 12 months ago #

    Ok, it seems these issues are more about the theme you are using.

    In http://alexistmyers.com/wp-content/themes/thesis_184/custom/custom.css, at around line 104, you have this CSS that is hiding the read more link:

    #footer p {
        display: none;
    }

    So under that, add this in:

    #footer p.gctst-widget-readmore {display: block;font-size: 12px;}

    and it should show for you. Let me know if that works :)

  10. Alexis403
    Member
    Posted 12 months ago #

    That worked perfectly! Thanks so much!

  11. johndove523
    Member
    Posted 11 months ago #

    devnz,

    I have the same problem with the CG Testimonials widget displaying "..." when trying to upgrade to v.1.3.2 , but the solution you offered above doesn't work for me. I opened testimonials.php and did a search on your code above:

    if( strlen($testimonial->post_content) > $words) {
    	echo '<div class="content">'.substr(wpautop($testimonial->post_content), 0, $words).'...</div>';
    } else {
    	echo '<div class="content">'.wpautop($testimonial->post_content).'</div>';
    }

    No such code was found. In fact, no instances of ".wpautop" were found. I did however find this code (with the ellipsis) on Line 751:

    echo '<div class="content">'.wp_trim_words( $testimonial->post_content, $num_words = 50, $more = '...' ).'</div>';

    and this:

    function gct_custom_columns($column) {
    	global $post;
    	$custom = get_post_custom();
    	if ("post_id" == $column) echo $post->ID;
    	elseif ("description" == $column) echo substr($post->post_content, 0, 100).'...';
    	elseif ("client_name" == $column)  echo $custom["client_name"][0];
    	elseif ("thumbnail" == $column) echo $post->post_thumbnail;
    	elseif ("shortcode" == $column)  echo '[single-testimonial id="'.$post->ID.'"]';
    	elseif("category" == $column) {
    		$categories = get_the_terms(0, "testimonial-category");
    			if(!is_array($categories)) return;
    			$category = reset($categories);
    		if(is_object($category)){
    			echo $category->name;
    		}
    	}
    }

    on Line 151. Can you determine anything from this? Please advise.

    Thank you,

    John

  12. justindudek
    Member
    Posted 9 months ago #

    I'm experiencing the same issue, where a "..." appears instead of the testimonial.

    I'm running on Thesis 1.8.5.

    I've tried implementing both the CSS and PHP recommendations, and have had no success.

    Sample page with issue: http://www.bulletproofexec.com/category/coffee-2/

    Can anyone assist? Thank you!

  13. Chris Dillon
    Member
    Posted 9 months ago #

    I am unable to reproduce the problem so if you can help debug we may be able to figure it out.

    Here is some code to display the testimonial details. Place it before the closing } of function widget which should be at line 826 of testimonials.php:

    echo '<span style="display: none; visibility: hidden;">DEBUG: post = ';
    echo print_r($testimonial,true);
    echo '</span>';

    The result will look something like this:

    DEBUG: post = WP_Post Object
    (
        [ID] => 85
        [post_author] => 1
        [post_date] => 2013-11-13 14:57:36
        [post_date_gmt] => 2013-11-13 19:57:36
        [post_content] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pretium orci ac tellus viverra, sit amet condimentum dolor euismod. Morbi magna tortor, pretium in malesuada accumsan, tincidunt at magna. Quisque posuere elit lectus, ac ornare augue egestas ac. Donec vitae nibh fringilla, placerat sem vel, dignissim nunc. Ut a orci ligula. Ut sagittis euismod pharetra. Duis vel euismod dolor, a euismod lectus. Quisque vitae pharetra enim. Vestibulum tristique vulputate vestibulum. Phasellus pharetra ut augue sit amet dapibus.
        [post_title] => Easier to read than this:
        [post_excerpt] =>
        [post_status] => publish
        [comment_status] => closed
        [ping_status] => closed
        [post_password] =>
        [post_name] => 85
        [to_ping] =>
        [pinged] =>
        [post_modified] => 2013-11-17 09:34:31
        [post_modified_gmt] => 2013-11-17 14:34:31
        [post_content_filtered] =>
        [post_parent] => 0
        [guid] => http://wpdemo/?post_type=testimonial&p=85
        [menu_order] => 0
        [post_type] => testimonial
        [post_mime_type] =>
        [comment_count] => 0
        [filter] => raw
        [client_name] => Eddy Edwards
        [company_website] =>
        [company_name] =>
    )

    It will be hidden in the page and won't be seen by your visitors. Then either post that section here or let me know when and I'll grab it from the site.

  14. Chris Dillon
    Member
    Posted 9 months ago #

    I may have found the problem after all. In the widget settings, make sure the character count is not zero (blank is OK).

    And here's a better way to handle that in testimonials.php:
    Change line 768 from

    if($data['words'] !== '') { $words = $data['words']; } else { $words = '250'; }

    to

    if ((int) $data['words']) { $words = $data['words']; } else { $words = '250'; }

    Chris

  15. justindudek
    Member
    Posted 9 months ago #

    BOOM, that worked Chris!

    Thank you so very much!

  16. SplashLight
    Member
    Posted 7 months ago #

    I have Version 1.3.2 and have a problem with one of my testimonials and their name not showing up on my rotating widget. It's there, but the text is very dark. I have a total of three testimonials that should be showing.

    I switched out the code on line 796 of my of testimonials.php widget to no avail like what has been suggested by @devnz above.

    Doe anyone have any other suggestions? My client's website is http://www.cynthiasrestaurant.com if someone would be willing to take a peek.

    Any help with how to change the text to white would also be appreciated~

    Thanks in advance,
    Christine

  17. Chris Dillon
    Member
    Posted 7 months ago #

    Try this in your theme's stylesheet:

    /* Testimonial person's name */
    .testimonial-widget h5 {
      color: #fff;
    }
    /* Testimonial text */
    .testimonial-widget .content {
      color: #fff;
    }
  18. SplashLight
    Member
    Posted 7 months ago #

    Hi Chris,

    Thanks for your help :)
    I entered your code above into my theme options CSS editor to no avail. I use Organized Themes. I didn't have a problem until after the update as well. I'm currently using WordPress 3.8.1.

    Appreciate your help if you have any other ideas. Love this plugin~
    Christine

  19. Chris Dillon
    Member
    Posted 7 months ago #

    I see the code you added. I forgot that the widget stylesheet is loaded at the end of the page so the new code was overridden. Try adding !important to prevent overriding like this:

    /* Testimonial person's name */
    .testimonial-widget h5 {
      color: #fff !important;
    }
    /* Testimonial text */
    .testimonial-widget .content {
      color: #fff !important;
    }

    Or you can edit the plugin stylesheet gctwidget.css directly. If the author publishes an update, you would have to make the change again.

  20. SplashLight
    Member
    Posted 7 months ago #

    Dang Chris it worked! My testimonials are in white. Thanks so much. What line would I enter this code into the gcwidget.css stylesheet for permanent fix.

    I still can't see the third testimonial though, can you help with that as well?

    You are awesome my friend :)

    Thanks so much~
    Christine

  21. SplashLight
    Member
    Posted 7 months ago #

    You're the best Chris!

  22. Chris Dillon
    Member
    Posted 7 months ago #

    You're welcome Christine. It looks great on your site. Not as good as the food though!

    For a permanent fix, change all #666666 to #fff in /wp-content/plugins/gc-testimonials.1.3.2/gc-testimonials/assets/css/gctwidget.css.

    The entire text of the third one is a link and is black due to this line:

    .testimonial-widget, .testimonial-widget a {
        color: #000000;

    so change that to white or whatever your primary link color is.

  23. SplashLight
    Member
    Posted 7 months ago #

    Chris, I could change the color to white for the third testimonial but had this grey background. Couldn't fix it and then it was fixed! I'm not a code person as you can tell.

    I'm still trying to figure out where to find the code above in the plugin stylesheet gctwidget.css so I can change it.

    Thanks again :)

    Christine

  24. SplashLight
    Member
    Posted 7 months ago #

    Thanks for your kind word too my friend~

  25. Chris Dillon
    Member
    Posted 7 months ago #

    Learning a little code and where to put it is like learning a little Spanish when vacationing in Mexico :)

    Great, now I want to go to Mexico.

    Instead of editing gctwidget.css, either add this to your theme's stylesheet:

    .testimonial-widget, .testimonial-widget a {
        color: #fff !important;
    }

    or edit that specific testimonial and remove the link to the riverwalk photo. The widget styles links in black.

  26. SplashLight
    Member
    Posted 7 months ago #

    Yes, I'm working on it Chris~

    Have a great weekend and thank so much for helping me trouble shoot this :)

    Christine

Reply

You must log in to post.

About this Plugin

About this Topic