WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
Sidebar widget placement for reviews (48 posts)

  1. prcface
    Member
    Posted 2 years ago #

    Is there a way that you can rotate which reviews you want to display in the sideabar i.e. not just the latest ones posted but maybe in random order so visitors see this changing all the time? THank you and love the features-finally found a great one after much trial and error and searching!

    PC

  2. cbrazy
    Member
    Posted 2 years ago #

    ...waited 3 months to see if this "widget placement" has been resolved, from what I can see we're supposed to install the plugin and simply put:
    [WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"]
    ...into a wedget, but the code shows up.

    What should I do?

  3. cbrazy
    Member
    Posted 2 years ago #

    Bompus? Anyone?

    ...added the code, added the php part to the code, edited the functions, nothing has worked. Help please.

    -Chris

  4. PhilEsq
    Member
    Posted 2 years ago #

    I was wondering if your plug-in could rotate a designated number of testimonials in the sidebar like collision testimonials and I found this thread. Do you have an estimate as to when you might have a widget available?

    Thanks.

  5. ddubbua
    Member
    Posted 2 years ago #

    @cbrazy The shortcode works when you put add_filter('widget_text', 'do_shortcode'); in your functions.php file. @prcface you can add the jquery cycle js to your site to cycle through the reviews. @Bompus It'd be nice if the widget html didn't have the same ID's so that there aren't conflicts between the widget and main review content. Love the plugin!

    If anyone's interested in how to get the cycle to work I could write a post, but it's pretty simple if you've played with basic js at all.

  6. prcface
    Member
    Posted 2 years ago #

    @ddubbua can you help me understand where/how to install jquery cycle js? Thanks and is there a plug-in for this?

  7. ddubbua
    Member
    Posted 2 years ago #

    http://jquery.malsup.com/cycle/download.html is the actual javascript you'll need. If you'd like it to cycle all of the divs within the sidebar (my sidebar has an id of secondary you'd add this code to your header.php after adding the js you download to a js folder in your theme.

    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/cycle.js"></script>
        <script type="text/javascript">
        jQuery(document).ready(function(){
    		jQuery('#secondary #wpcr_respond_1').cycle();
    
    	});
    </script>

    If you'd like to see it in action it's currently running at portland.monkeybarstorage.com

  8. ddubbua
    Member
    Posted 2 years ago #

    Over lunch I made a little more detailed explanation of how to add cycle and make it cycle through your testimonials including the plugin file that I modified to clean up the HTML so that it would work well with cycle. It was a quick explanation that just did over lunch so let me know if there are any questions.

  9. northofhades
    Member
    Posted 2 years ago #

    @ddubbua I'm trying to follow the directions you gave on your link (to add cycle) but I am not familiar at all with javascript. What do I do with the downloaded code from the jquery site? I was guessing that I copy and paste it in a file called cycle.js in my childtheme folder, but that doesn't seem to be it.

    Thanks for your help, the monkeybarstorage testimonials look slick.

  10. ddubbua
    Member
    Posted 2 years ago #

    Yes, you are correct. Then you add this part to the head of your header.php file to call that file that you saved: <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’); ?>/js/cycle.js”></script>

    That will call the document you saved, then this will actually get the slide show going if you placed it in the sidebar:

    <script type=”text/javascript”>
    jQuery(document).ready(function(){
    jQuery(‘#secondary #wpcr_respond_1′).cycle();
    });
    </script>

    If you send a link we can help you debug if this doesn't work.

  11. northofhades
    Member
    Posted 2 years ago #

    Thanks for the offer, but I'm setup on localhost right now.

    I did not get the cycle to work, but I was playing with the settings in the [WPCR_SHOW POSTID="all" NUM="3" SNIPPET="100" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] line, and I think I found something that will work for me.

    Do you know how I would set the reviews (like the first 3 or something) that I could set as permanent? I know I can just paste the quotes directly into a text widget, but I would like to have the flexibility to have them show the most recent or a set of fixed ones.

    And again, thanks for the offer for troubleshooting support.

  12. pxlgds
    Member
    Posted 2 years ago #

    @ddubbua i too am attempting to follow your directions for wpcr cycle widget. i really like the monkeybarstorage testimonials. this is more or less what i want to do. i've tried everything i can think of with the code for the last few days. i am unfamiliar with js and only slightly more knowledge of php.

    i downloaded both your mod php and js file and inserted the code in header. i believe i have followed your post/this thread correctly, but if that were true it would work, true?

    do you know what is amiss? pls and ty.
    http://taxprepwny.com/testimonials/

  13. pxlgds
    Member
    Posted 2 years ago #

    i have updated the website. the sidebar widget is now on all pages but the testimonials page. http://taxprepwny.com/ still cannot get it to cycle properly. any thoughts? thanks!

  14. brian@foxxr.com
    Member
    Posted 2 years ago #

    I am having the same problem with the text widget displaying the shortcode.
    [WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"]

    I added <?php do_shortcode('[WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] ') ?> to my functions.php file.

  15. PhilEsq
    Member
    Posted 2 years ago #

    I just installed the plug-in but I have been unable to figure out how to get the reviews in the sidebar. I pasted the code in a text widget but that is apparently not the way to do it. I really like the stars that appear with the reviews and that's the only reason I like this plug-in. It really needs a sidebar widget that can rotate review snippets. Ideally, the admin should be able to check off which review snippets to rotate in the sidebar.

  16. alfarom
    Member
    Posted 2 years ago #

    Has there been update on how to get reviews into the sidebar? I really like this plugin but would like to show a few reviews in a sidebar..

  17. alfarom
    Member
    Posted 2 years ago #

    I've managed to do it by adding the required line of code to the custom_functions.php file and then putting the code into a text widget. I changed the number of reviews to 1 and it looks great...

    add_filter('widget_text', 'do_shortcode');

    [WPCR_SHOW POSTID="ALL" NUM="1" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"]

    Great stuff..

  18. alfarom
    Member
    Posted 2 years ago #

    You can see it here....

    http://www.laptopscreenwatford.co.uk

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic