WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget: Star Rating System
Rating button for activity comment replies in wrong div? (2 posts)

  1. bdigges
    Member
    Posted 1 year ago #

    Example.

    So the RW button for activity comment replies populate in the content div... ".acomment-content". Not ideal.

    I'm trying to get them to line up as per the image. The problem is that these two different buttons are using the same divs for their CSS and manipulating one changes the other. It would be so much easier if I could just get the button to pop up in the ".acomments-options" div instead of the one prior mentioned.

    I assume this will take some tinkering within the plugin code - any ideas where to start?

    Thanks in advance!
    -Brandon

    http://wordpress.org/extend/plugins/rating-widget/

  2. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Brandon,

    I'm not sure if you would be able to tweak this from the plugin's php code, because of the WP hooks structure. If you do insist to tackle it from that direction, check rw_display_activity_rating_bottom method within our main file rating-widget.php

    I would actually suggest a different approach using jQuery. We have a callback method that called after the ratings load in the page. You can use it to re-position your ratings. In the same file, search for:
    RW.render(null
    Change the null, to the callback you would like to be invoked after the load. For example:

    RW.render(function(){
       $('.rw-ui-container').each(function(i, rating){
           $(rating)
                 .parents('your-activity-update-container')
                 .find('.acomments-options')
                 .append($(rating));
       });
    });

    Let me know if it was helpful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic